From c5d580fbc76c41a3355aef8dcd4aa387ea9c58c2 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 19 Sep 2018 22:05:32 +0200 Subject: [PATCH] tools/checkpatch.pl: recognize _Atomic as modifier checkpatch is slightly confused by _Atomic, causing some spurious warnings. Signed-off-by: David Lamparter --- tools/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl index 55b3e1e564..3b861e4f87 100755 --- a/tools/checkpatch.pl +++ b/tools/checkpatch.pl @@ -359,6 +359,7 @@ our $InitAttribute = qr{$InitAttributeData|$InitAttributeConst|$InitAttributeIni # We need \b after 'init' otherwise 'initconst' will cause a false positive in a check our $Attribute = qr{ const| + _Atomic| __percpu| __nocast| __safe| -- 2.39.5