Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b3ba35a authored by Sarangdhar Joshi's avatar Sarangdhar Joshi Committed by Kyle Yan
Browse files

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: default avatarSarangdhar Joshi <spjoshi@codeaurora.org>
parent 0cf65925
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5021,7 +5021,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);