public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Change a WARN message in checkpatch
@ 2008-01-14 22:29 Paolo Ciarrocchi
  2008-01-28 14:56 ` Andy Whitcroft
  0 siblings, 1 reply; 11+ messages in thread
From: Paolo Ciarrocchi @ 2008-01-14 22:29 UTC (permalink / raw)
  To: apw; +Cc: Linux Kernel

Hi Andy,
When I started using checkpatch I was confused by the following WARN message:

	no space between function name and open parenthesis

I thought the problem was that a space was missing while the truth is the opposite.

How about the following patch?


--- checkpatch.pl.old	2008-01-04 13:37:51.000000000 +0100
+++ checkpatch.pl	2008-01-04 13:37:24.000000000 +0100
@@ -1117,7 +1117,7 @@
 		while ($line =~ /($Ident)\s+\(/g) {
 			if ($1 !~ /^(?:if|for|while|switch|return|volatile|__volatile__|__attribute__|format|__extension__|Copyright|case)$/ &&
 		            $line !~ /$Type\s+\(/ && $line !~ /^.\#\s*define\b/) {
-				WARN("no space between function name and open parenthesis '('\n" . $herecurr);
+				WARN("don't put a space between function name and open parenthesis '('\n" . $herecurr);
 			}
 		}
 # Check operator spacing.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH] Change a WARN message in checkpatch
@ 2008-01-04 12:45 Paolo Ciarrocchi
  0 siblings, 0 replies; 11+ messages in thread
From: Paolo Ciarrocchi @ 2008-01-04 12:45 UTC (permalink / raw)
  To: andyw, Linux Kernel

Hi Andy,
I just started using checkpatch and I was confused by the following WARN message:

	no space between function name and open parenthesis

I thought the probelm was that a space was missing while the truth is the opposite.

How about the following patch?


--- checkpatch.pl.old	2008-01-04 13:37:51.000000000 +0100
+++ checkpatch.pl	2008-01-04 13:37:24.000000000 +0100
@@ -1117,7 +1117,7 @@
 		while ($line =~ /($Ident)\s+\(/g) {
 			if ($1 !~ /^(?:if|for|while|switch|return|volatile|__volatile__|__attribute__|format|__extension__|Copyright|case)$/ &&
 		            $line !~ /$Type\s+\(/ && $line !~ /^.\#\s*define\b/) {
-				WARN("no space between function name and open parenthesis '('\n" . $herecurr);
+				WARN("don't put a space between function name and open parenthesis '('\n" . $herecurr);
 			}
 		}
 # Check operator spacing.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-02-25 10:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-14 22:29 [PATCH] Change a WARN message in checkpatch Paolo Ciarrocchi
2008-01-28 14:56 ` Andy Whitcroft
2008-01-28 15:13   ` Paolo Ciarrocchi
2008-02-23 13:38     ` Paolo Ciarrocchi
2008-02-24 15:18       ` Benny Halevy
2008-02-24 18:14         ` Paolo Ciarrocchi
2008-02-25  3:29           ` Andy Whitcroft
2008-02-25  5:47             ` Benny Halevy
2008-02-25  6:51             ` Paolo Ciarrocchi
2008-02-25 10:53               ` Andy Whitcroft
  -- strict thread matches above, loose matches on Subject: below --
2008-01-04 12:45 Paolo Ciarrocchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox