]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
s390/compiler.h Fix sparse vs. hotpatch
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 7 Oct 2015 08:54:36 +0000 (10:54 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:12 +0000 (14:32 +0200)
sparse does not understand the s390 specific hotpatch attribute and
floods the log with messages like
include/uapi/linux/swab.h:92:8: error: attribute 'hotpatch': unknown attribute

Let's just dont use it, if __CHECKER__ is defined.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
include/linux/compiler.h

index c836eb2dc44d5b3a4d5e98dfbbd274c4448daa90..449cb674c7fa0046851a1de87624b169348d4c1c 100644 (file)
@@ -56,7 +56,7 @@ extern void __chk_io_ptr(const volatile void __iomem *);
 #include <linux/compiler-gcc.h>
 #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))