diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-04-26 15:23:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-29 05:56:41 -0400 |
commit | f005f5d860e0231fe212cfda8c1a3148b99609f4 (patch) | |
tree | ec500a156864c8d0f2b7c34336115cfedc90b231 | |
parent | 35de5b0692aaa1f99803044526f2cc00ff864426 (diff) |
x86/asm: Make asm/alternative.h safe from assembly
asm/alternative.h isn't directly useful from assembly, but it
shouldn't break the build.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
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: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/e5b693fcef99fe6e80341c9e97a002fb23871e91.1461698311.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/include/asm/alternative.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h index be4496c961db..e77a6443104f 100644 --- a/arch/x86/include/asm/alternative.h +++ b/arch/x86/include/asm/alternative.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _ASM_X86_ALTERNATIVE_H | 1 | #ifndef _ASM_X86_ALTERNATIVE_H |
2 | #define _ASM_X86_ALTERNATIVE_H | 2 | #define _ASM_X86_ALTERNATIVE_H |
3 | 3 | ||
4 | #ifndef __ASSEMBLY__ | ||
5 | |||
4 | #include <linux/types.h> | 6 | #include <linux/types.h> |
5 | #include <linux/stddef.h> | 7 | #include <linux/stddef.h> |
6 | #include <linux/stringify.h> | 8 | #include <linux/stringify.h> |
@@ -232,4 +234,6 @@ static inline int alternatives_text_reserved(void *start, void *end) | |||
232 | */ | 234 | */ |
233 | #define ASM_NO_INPUT_CLOBBER(clbr...) "i" (0) : clbr | 235 | #define ASM_NO_INPUT_CLOBBER(clbr...) "i" (0) : clbr |
234 | 236 | ||
237 | #endif /* __ASSEMBLY__ */ | ||
238 | |||
235 | #endif /* _ASM_X86_ALTERNATIVE_H */ | 239 | #endif /* _ASM_X86_ALTERNATIVE_H */ |