x86/asm: Error out if asm/jump_label.h is included inappropriately
authorAndy Lutomirski <luto@kernel.org>
Thu, 12 Nov 2015 20:59:02 +0000 (12:59 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 24 Nov 2015 08:56:43 +0000 (09:56 +0100)
commitc28454332fe0b65e22c3a2717e5bf05b5b47ca20
tree15dcf6d8644c7e31c7505ce071a20117d6c6080a
parented11a7f1b3bd482bd7d6ef7bc2859c41fb43b9ee
x86/asm: Error out if asm/jump_label.h is included inappropriately

Rather than potentially generating incorrect code on a
non-HAVE_JUMP_LABEL kernel if someone includes asm/jump_label.h,
error out.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/99407f0ac7fa3ab03a3d31ce076d47b5c2f44795.1447361906.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/jump_label.h