The patch titled Subject: compiler-gcc: hide COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW from sparse has been added to the -mm tree. Its filename is compiler-gcc-hide-compiler_has_generic_builtin_overflow-from-sparse.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/compiler-gcc-hide-compiler_has_generic_builtin_overflow-from-sparse.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/compiler-gcc-hide-compiler_has_generic_builtin_overflow-from-sparse.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Johannes Berg <johannes.berg@xxxxxxxxx> Subject: 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@xxxxxxxxxxxxxxxx Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/compiler-gcc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/compiler-gcc.h~compiler-gcc-hide-compiler_has_generic_builtin_overflow-from-sparse +++ a/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 _ Patches currently in -mm which might be from johannes.berg@xxxxxxxxx are compiler-gcc-hide-compiler_has_generic_builtin_overflow-from-sparse.patch kernelh-hide-__is_constexpr-from-sparse.patch