diff --git a/include/linux/compiler.h b/include/linux/compiler.h index 27725f1ab5ab..98057f93938c 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -229,10 +229,10 @@ void ftrace_likely_update(struct ftrace_likely_data *f, int val, /* * Use __typeof_unqual__() when available. * - * XXX: Remove test for __CHECKER__ once - * sparse learns about __typeof_unqual__(). + * XXX: Remove test for __GENKSYMS__ once "genksyms" handles + * __typeof_unqual__(), and test for __CHECKER__ once "sparse" handles it. */ -#if CC_HAS_TYPEOF_UNQUAL && !defined(__CHECKER__) +#if CC_HAS_TYPEOF_UNQUAL && !defined(__GENKSYMS__) && !defined(__CHECKER__) # define USE_TYPEOF_UNQUAL 1 #endif