[Sound-open-firmware] [PATCH] scripts: checkpatch: don't complain about volatile
Xiuli Pan
xiuli.pan at linux.intel.com
Thu Apr 12 17:30:06 CEST 2018
From: Pan Xiuli <xiuli.pan at linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan at linux.intel.com>
---
scripts/checkpatch.pl | 7 -------
1 file changed, 7 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 16d035e..6afecfe 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5189,13 +5189,6 @@ sub process {
}
}
-# no volatiles please
- my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b};
- if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
- WARN("VOLATILE",
- "Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst\n" . $herecurr);
- }
-
# Check for user-visible strings broken across lines, which breaks the ability
# to grep for the string. Make exceptions when the previous string ends in a
# newline (multiple lines in one string constant) or '\t', '\r', ';', or '{'
--
2.7.4
More information about the Sound-open-firmware
mailing list