Skip to content

Commit e23ef1f

Browse files
JoePerchestorvalds
authored andcommitted
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>
1 parent c0a5c89 commit e23ef1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ sub hash_show_words {
278278
__noreturn|
279279
__used|
280280
__cold|
281+
__pure|
281282
__noclone|
282283
__deprecated|
283284
__read_mostly|

0 commit comments

Comments
 (0)