aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2012-01-30 13:51:52 +0000
committerSpencer Oliver <spen@spen-soft.co.uk>2012-02-06 10:48:42 +0000
commit9ad57e96b3c15c3dfbaa908abc842f264648ab55 (patch)
tree8a7580e3651f06814028ef5d011e1b89d6db7c07 /tools
parent2f6f7c442d24ba296dd9447e254e34b817fd02b4 (diff)
downloadriscv-openocd-9ad57e96b3c15c3dfbaa908abc842f264648ab55.zip
riscv-openocd-9ad57e96b3c15c3dfbaa908abc842f264648ab55.tar.gz
riscv-openocd-9ad57e96b3c15c3dfbaa908abc842f264648ab55.tar.bz2
checkpatch: remove volatile check
We may enable this again - but at the moment is causing extra issues with reformatting the codebase. Change-Id: I5a2aaaa32ad784e011dff3079ff45501452c1819 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/414
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkpatch.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index cabfa67..73cf240 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -2961,11 +2961,11 @@ 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/volatile-considered-harmful.txt\n" . $herecurr);
- }
+# 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/volatile-considered-harmful.txt\n" . $herecurr);
+# }
# warn about #if 0
if ($line =~ /^.\s*\#\s*if\s+0\b/) {