diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index aa62850e2ba..c004a5931f4 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3284,6 +3284,12 @@ sub process { $herecurr); } +# dsb is too ARMish, and should usually be mb. + if ($line =~ /\bdsb\b/) { + WARN("Use of dsb is discouranged: prefer mb.\n" . + $herecurr); + } + # unbounded string functions are overflow risks my %str_fns = ( "sprintf" => "snprintf",