diff options
author | David Woodhouse <[email protected]> | 2018-02-19 10:50:57 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-02-20 11:17:58 +0100 |
commit | 87358710c1fb4f1bf96bbe2349975ff9953fc9b2 (patch) | |
tree | e299a6ab64aadb44ffd431ae8342e0ae0b266cba /include/linux/compiler-clang.h | |
parent | dd84441a797150dcc49298ec95c459a8891d8bb1 (diff) |
x86/retpoline: Support retpoline builds with Clang
Signed-off-by: David Woodhouse <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
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 |