]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: ignore __pure $Attribute
authorJoe Perches <joe@perches.com>
Fri, 13 Feb 2015 22:38:24 +0000 (14:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:39 +0000 (21:21 -0800)
commitfcfc0b9179e94d63bf56bec7db72dd852bb0abc9
treed7eb12bbb9dc454bb46677cd581930cfbf4b2733
parent2d8635441d76d1a6eece632b5d9604af4302b712
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>
scripts/checkpatch.pl