From: Andy Lutomirski <luto@kernel.org> To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>, Andi Kleen <andi@firstfloor.org>, Andy Lutomirski <luto@kernel.org> Subject: [PATCH 2/8] x86/asm: Make asm/alternative.h safe from assembly Date: Tue, 26 Apr 2016 12:23:25 -0700 [thread overview] Message-ID: <e5b693fcef99fe6e80341c9e97a002fb23871e91.1461698311.git.luto@kernel.org> (raw) In-Reply-To: <cover.1461698311.git.luto@kernel.org> In-Reply-To: <cover.1461698311.git.luto@kernel.org> asm/alternative.h isn't directly useful from assembly, but it shouldn't break the build. Signed-off-by: Andy Lutomirski <luto@kernel.org> --- arch/x86/include/asm/alternative.h | 4 ++++ 1 file changed, 4 insertions(+) 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 @@ #ifndef _ASM_X86_ALTERNATIVE_H #define _ASM_X86_ALTERNATIVE_H +#ifndef __ASSEMBLY__ + #include <linux/types.h> #include <linux/stddef.h> #include <linux/stringify.h> @@ -232,4 +234,6 @@ static inline int alternatives_text_reserved(void *start, void *end) */ #define ASM_NO_INPUT_CLOBBER(clbr...) "i" (0) : clbr +#endif /* __ASSEMBLY__ */ + #endif /* _ASM_X86_ALTERNATIVE_H */ -- 2.5.5
next prev parent reply other threads:[~2016-04-26 19:25 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-04-26 19:23 [PATCH 0/8] x86: A round of x86 segmentation improvements Andy Lutomirski 2016-04-26 19:23 ` [PATCH 1/8] x86/asm: Stop depending on ptrace.h in alternative.h Andy Lutomirski 2016-04-29 10:48 ` [tip:x86/asm] " tip-bot for Andy Lutomirski 2016-04-26 19:23 ` Andy Lutomirski [this message] 2016-04-29 10:49 ` [tip:x86/asm] x86/asm: Make asm/alternative.h safe from assembly tip-bot for Andy Lutomirski 2016-04-26 19:23 ` [PATCH 3/8] x86/segments/64: When loadsegment(fs, ...) fails, clear the base Andy Lutomirski 2016-04-29 10:49 ` [tip:x86/asm] " tip-bot for Andy Lutomirski 2016-04-26 19:23 ` [PATCH 4/8] x86/segments/64: When load_gs_index " Andy Lutomirski 2016-04-29 10:49 ` [tip:x86/asm] " tip-bot for Andy Lutomirski 2016-04-26 19:23 ` [PATCH 5/8] x86/arch_prctl/64: Remove FSBASE/GSBASE < 4G optimization Andy Lutomirski 2016-04-26 20:50 ` Andi Kleen 2016-04-26 22:33 ` Andy Lutomirski 2016-04-29 10:50 ` [tip:x86/asm] " tip-bot for Andy Lutomirski 2016-04-26 19:23 ` [PATCH 6/8] x86/asm/64: Rename thread_struct's fs and gs to fsbase and gsbase Andy Lutomirski 2016-04-29 10:50 ` [tip:x86/asm] " tip-bot for Andy Lutomirski 2016-04-26 19:23 ` [PATCH 7/8] x86/tls: Synchronize segment registers in set_thread_area Andy Lutomirski 2016-04-29 10:51 ` [tip:x86/asm] x86/tls: Synchronize segment registers in set_thread_area() tip-bot for Andy Lutomirski 2016-04-26 19:23 ` [PATCH 8/8] selftests/x86/ldt_gdt: Test set_thread_area deletion of an active segment Andy Lutomirski 2016-04-29 10:51 ` [tip:x86/asm] selftests/x86/ldt_gdt: Test set_thread_area() " tip-bot for Andy Lutomirski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=e5b693fcef99fe6e80341c9e97a002fb23871e91.1461698311.git.luto@kernel.org \ --to=luto@kernel.org \ --cc=andi@firstfloor.org \ --cc=bp@alien8.de \ --cc=brgerst@gmail.com \ --cc=linux-kernel@vger.kernel.org \ --cc=x86@kernel.org \ --subject='Re: [PATCH 2/8] x86/asm: Make asm/alternative.h safe from assembly' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.