mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
checkpatch: Add exceptions for "dsb" keyword usage
Currently checkpatch.pl throws error for any use of "dsb" keyword. Add exceptions when it is used in a variable or a function name. Expectations are when 'dsb' keyword is used in a variable or a function name, it is prefixed with class [-_>*\.] and/or suffixed with class [-_\.;]. Change-Id: I06cd21e42135334bb41cf31f13088b118fcf3ac9 Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
This commit is contained in:
parent
73998fd952
commit
d2236acdd7
1 changed files with 1 additions and 1 deletions
|
|
@ -5576,7 +5576,7 @@ sub process {
|
|||
}
|
||||
|
||||
# dsb is too ARMish, and should usually be mb.
|
||||
if ($line =~ /\bdsb\b/) {
|
||||
if ($line =~ /[^-_>*\.]\bdsb\b[^-_\.;]/) {
|
||||
WARN("ARM_BARRIER",
|
||||
"Use of dsb is discouranged: prefer mb.\n" .
|
||||
$herecurr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue