diff --git a/include/linux/compiler.h b/include/linux/compiler.h index c836eb2dc44d5b3a4d5e98dfbbd274c4448daa90..449cb674c7fa0046851a1de87624b169348d4c1c 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -56,7 +56,7 @@ extern void __chk_io_ptr(const volatile void __iomem *); #include #endif -#ifdef CC_USING_HOTPATCH +#if defined(CC_USING_HOTPATCH) && !defined(__CHECKER__) #define notrace __attribute__((hotpatch(0,0))) #else #define notrace __attribute__((no_instrument_function))