From aeb2707d80049094337742d0f62cd24dbef1c01d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 16 Jul 2022 12:37:49 +0200 Subject: [PATCH] Disable warning about volatile variables. They are oftne needed in embedded code --- checkpatch.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/checkpatch.pl b/checkpatch.pl index 5d56fe6..f6fbefc 100755 --- a/checkpatch.pl +++ b/checkpatch.pl @@ -5329,10 +5329,10 @@ 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); - } + #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