From f1fdaffaa75daf8323e5d514bb1cb0bac0c2f84e Mon Sep 17 00:00:00 2001 From: Gregory Bean Date: Fri, 22 Jul 2011 11:12:16 -0700 Subject: [PATCH] checkpatch: remove 'static const char * const' check While this check is valid in theory, it generates a plethora of false positives on ALSA drivers and ends up causing more trouble than it saves. Signed-off-by: Gregory Bean --- scripts/checkpatch.pl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 1163275a8d4..c96213d4e24 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1959,12 +1959,6 @@ sub process { $herecurr); } -# check for static const char * arrays. - if ($line =~ /\bstatic\s+const\s+char\s*\*\s*(\w+)\s*\[\s*\]\s*=\s*/) { - WARN("static const char * array should probably be static const char * const\n" . - $herecurr); - } - # check for static char foo[] = "bar" declarations. if ($line =~ /\bstatic\s+char\s+(\w+)\s*\[\s*\]\s*=\s*"/) { WARN("static char array declaration should probably be static const char\n" .