diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-19 22:05:32 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-19 22:05:32 +0200 |
commit | c5d580fbc76c41a3355aef8dcd4aa387ea9c58c2 (patch) | |
tree | 0178e2722e319982b87a5e51379e5c507bda2bd7 /tools/checkpatch.pl | |
parent | lib: remove unused frr_pthread_yield() (diff) | |
download | frr-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-x | tools/checkpatch.pl | 1 |
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| |