* [PATCH] checkpatch: Ignore __pure $Attribute
@ 2015-01-05 18:46 Joe Perches
0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2015-01-05 18:46 UTC (permalink / raw)
To: Andrew Morton; +Cc: LKML
Just like "__cold", ignore the __pure gcc attribute macro so pointer
warnings aren't generated for uses like "int * __pure fn(...)"
Signed-off-by: Joe Perches <joe@perches.com>
---
scripts/checkpatch.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index f0bb6d6..b6a850c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -278,6 +278,7 @@ our $Attribute = qr{
__noreturn|
__used|
__cold|
+ __pure|
__noclone|
__deprecated|
__read_mostly|
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-05 18:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 18:46 [PATCH] checkpatch: Ignore __pure $Attribute Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome