diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-11-17 13:35:09 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-11-19 07:24:39 +1100 |
commit | e1f679f01fb7493546aca4d2e372ce6ed5c95ca0 (patch) | |
tree | ce5da08b9925dd0f6a37b4cae2c890a3324038f4 | |
parent | 244dc71e7ac3bf5853d31196884a905586a27ab1 (diff) | |
download | linux-next-e1f679f01fb7493546aca4d2e372ce6ed5c95ca0.tar.gz |
compiler-gcc: hide COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW from sparse
Sparse doesn't support all the overflow builtins, so just hide them from
it to avoid lots of warnings/errors reported by it.
We could try to teach them to sparse, but the passed types are variable,
and sparse doesn't seem to handle that well.
Link: http://lkml.kernel.org/r/20181109093534.15121-1-johannes@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | include/linux/compiler-gcc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 2010493e1040..3154f2a84571 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -143,7 +143,7 @@ #define KASAN_ABI_VERSION 3 #endif -#if GCC_VERSION >= 50100 +#if GCC_VERSION >= 50100 && !defined(__CHECKER__) #define COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW 1 #endif |