mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
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>
This commit is contained in:
parent
c0a5c89858
commit
e23ef1f334
@ -278,6 +278,7 @@ our $Attribute = qr{
|
||||
__noreturn|
|
||||
__used|
|
||||
__cold|
|
||||
__pure|
|
||||
__noclone|
|
||||
__deprecated|
|
||||
__read_mostly|
|
||||
|
Loading…
Reference in New Issue
Block a user