summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-02-13 23:38:24 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-14 06:21:39 +0100
commite23ef1f3340c24d5ff130b574546566349897258 (patch)
treed7eb12bbb9dc454bb46677cd581930cfbf4b2733 /scripts
parentcheckpatch: improve octal permissions tests (diff)
downloadlinux-e23ef1f3340c24d5ff130b574546566349897258.tar.xz
linux-e23ef1f3340c24d5ff130b574546566349897258.zip
checkpatch: ignore __pure $Attribute
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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2b77d96db735..221a2b245690 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -278,6 +278,7 @@ our $Attribute = qr{
__noreturn|
__used|
__cold|
+ __pure|
__noclone|
__deprecated|
__read_mostly|