Skip to content

Commit

Permalink
checkpatch: ignore __pure $Attribute
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoePerches authored and torvalds committed Feb 14, 2015
1 parent c0a5c89 commit e23ef1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ sub hash_show_words {
__noreturn|
__used|
__cold|
__pure|
__noclone|
__deprecated|
__read_mostly|
Expand Down

0 comments on commit e23ef1f

Please sign in to comment.