diff options
author | Joe Perches <joe@perches.com> | 2015-02-13 14:38:24 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-13 21:21:39 -0800 |
commit | e23ef1f3340c24d5ff130b574546566349897258 (patch) | |
tree | d7eb12bbb9dc454bb46677cd581930cfbf4b2733 | |
parent | c0a5c89858337653d7b52ecbbcd9975a52359570 (diff) | |
download | op-kernel-dev-e23ef1f3340c24d5ff130b574546566349897258.zip op-kernel-dev-e23ef1f3340c24d5ff130b574546566349897258.tar.gz |
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>
-rwxr-xr-x | scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2b77d96..221a2b2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -278,6 +278,7 @@ our $Attribute = qr{ __noreturn| __used| __cold| + __pure| __noclone| __deprecated| __read_mostly| |