summaryrefslogtreecommitdiffstats
path: root/tools/checkpatch.pl
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-19 22:05:32 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2018-09-19 22:05:32 +0200
commitc5d580fbc76c41a3355aef8dcd4aa387ea9c58c2 (patch)
tree0178e2722e319982b87a5e51379e5c507bda2bd7 /tools/checkpatch.pl
parentlib: remove unused frr_pthread_yield() (diff)
downloadfrr-c5d580fbc76c41a3355aef8dcd4aa387ea9c58c2.tar.xz
frr-c5d580fbc76c41a3355aef8dcd4aa387ea9c58c2.zip
tools/checkpatch.pl: recognize _Atomic as modifier
checkpatch is slightly confused by _Atomic, causing some spurious warnings. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tools/checkpatch.pl')
-rwxr-xr-xtools/checkpatch.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/checkpatch.pl b/tools/checkpatch.pl
index 55b3e1e56..3b861e4f8 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|