From: Joe Perches Date: Fri, 13 Feb 2015 22:38:24 +0000 (-0800) Subject: checkpatch: ignore __pure $Attribute X-Git-Tag: android-x86-4.4-r3~331^2~56 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e23ef1f3340c24d5ff130b574546566349897258;p=android-x86%2Fkernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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{ __noreturn| __used| __cold| + __pure| __noclone| __deprecated| __read_mostly|