From: David Lamparter Date: Wed, 19 Sep 2018 20:05:32 +0000 (+0200) Subject: tools/checkpatch.pl: recognize _Atomic as modifier X-Git-Tag: frr-7.1-dev~341^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3010%2Fhead;p=mirror%2Ffrr.git tools/checkpatch.pl: recognize _Atomic as modifier checkpatch is slightly confused by _Atomic, causing some spurious warnings. Signed-off-by: David Lamparter --- 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|