diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2018-02-19 13:50:57 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-20 13:17:58 +0300 |
commit | 87358710c1fb4f1bf96bbe2349975ff9953fc9b2 (patch) | |
tree | e299a6ab64aadb44ffd431ae8342e0ae0b266cba /include/linux/compiler-clang.h | |
parent | dd84441a797150dcc49298ec95c459a8891d8bb1 (diff) | |
download | linux-87358710c1fb4f1bf96bbe2349975ff9953fc9b2.tar.xz |
x86/retpoline: Support retpoline builds with Clang
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: arjan.van.de.ven@intel.com
Cc: bp@alien8.de
Cc: dave.hansen@intel.com
Cc: jmattson@google.com
Cc: karahmed@amazon.de
Cc: kvm@vger.kernel.org
Cc: pbonzini@redhat.com
Cc: rkrcmar@redhat.com
Link: http://lkml.kernel.org/r/1519037457-7643-5-git-send-email-dwmw@amazon.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/compiler-clang.h')
-rw-r--r-- | include/linux/compiler-clang.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h index d02a4df3f473..d3f264a5b04d 100644 --- a/include/linux/compiler-clang.h +++ b/include/linux/compiler-clang.h @@ -27,3 +27,8 @@ #if __has_feature(address_sanitizer) #define __SANITIZE_ADDRESS__ #endif + +/* Clang doesn't have a way to turn it off per-function, yet. */ +#ifdef __noretpoline +#undef __noretpoline +#endif |