diff options
author | Joe Perches <joe@perches.com> | 2015-02-13 17:38:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-14 00:21:39 -0500 |
commit | e23ef1f3340c24d5ff130b574546566349897258 (patch) | |
tree | d7eb12bbb9dc454bb46677cd581930cfbf4b2733 /scripts | |
parent | c0a5c89858337653d7b52ecbbcd9975a52359570 (diff) |
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-x | scripts/checkpatch.pl | 1 |
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{ | |||
278 | __noreturn| | 278 | __noreturn| |
279 | __used| | 279 | __used| |
280 | __cold| | 280 | __cold| |
281 | __pure| | ||
281 | __noclone| | 282 | __noclone| |
282 | __deprecated| | 283 | __deprecated| |
283 | __read_mostly| | 284 | __read_mostly| |