X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=kernel%2Finclude%2Flinux%2Fcompiler-gcc.h;fp=kernel%2Finclude%2Flinux%2Fcompiler-gcc.h;h=287e698c28deec27e8b9245de540b1b69914b9b7;hb=52f993b8e89487ec9ee15a7fb4979e0f09a45b27;hp=22ab246feed34c104038d3f94e1401ea9a587f8f;hpb=c189ccac5702322ed843fe17057035b7222a59b6;p=kvmfornfv.git diff --git a/kernel/include/linux/compiler-gcc.h b/kernel/include/linux/compiler-gcc.h index 22ab246fe..287e698c2 100644 --- a/kernel/include/linux/compiler-gcc.h +++ b/kernel/include/linux/compiler-gcc.h @@ -199,7 +199,7 @@ #define unreachable() __builtin_unreachable() /* Mark a function definition as prohibited from being cloned. */ -#define __noclone __attribute__((__noclone__)) +#define __noclone __attribute__((__noclone__, __optimize__("no-tracer"))) #endif /* GCC_VERSION >= 40500 */ @@ -251,7 +251,9 @@ #endif #endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ -#if GCC_VERSION >= 50000 +#if GCC_VERSION >= 70000 +#define KASAN_ABI_VERSION 5 +#elif GCC_VERSION >= 50000 #define KASAN_ABI_VERSION 4 #elif GCC_VERSION >= 40902 #define KASAN_ABI_VERSION 3