projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a5c89
)
checkpatch: ignore __pure $Attribute
author
Joe Perches
<joe@perches.com>
Fri, 13 Feb 2015 22:38:24 +0000
(14:38 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:39 +0000
(21:21 -0800)
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>
scripts/checkpatch.pl
patch
|
blob
|
blame
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 2b77d96db73554a7cd297e72d64688530596fce7..221a2b245690504a291034e4974eb496a5942f93 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-278,6
+278,7
@@
our $Attribute = qr{
__noreturn|
__used|
__cold|
+ __pure|
__noclone|
__deprecated|
__read_mostly|