提交 e23ef1f3 编写于 作者: J Joe Perches 提交者: Linus Torvalds

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: NJoe Perches <joe@perches.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c0a5c898
......@@ -278,6 +278,7 @@ our $Attribute = qr{
__noreturn|
__used|
__cold|
__pure|
__noclone|
__deprecated|
__read_mostly|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册