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>
This commit is contained in:
David Lamparter 2018-09-19 22:05:32 +02:00
parent 64777f5d87
commit c5d580fbc7

View File

@ -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|