login
Header Space

 
 

[PATCH 1/1] checkpatch: nested structs

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <apw@...>
Cc: <linux-kernel@...>
Date: Tuesday, April 8, 2008 - 10:55 am

This is required for nested struct/union compounds.
---
 scripts/checkpatch.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 58a9494..cf78e86 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1582,7 +1582,7 @@ sub process {
 
 # closing brace should have a space following it when it has anything
 # on the line
-		if ($line =~ /}(?!(?:,|;|\)))\S/) {
+		if ($line =~ /}+(?!(?:,|;|\)))\S/) {
 			ERROR("space required after that close brace '}'\n" . $herecurr);
 		}
 
-- 
1.5.5.rc3

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] checkpatch: nested structs, Jan Engelhardt, (Tue Apr 8, 10:55 am)
Re: [PATCH 1/1] checkpatch: nested structs, Andy Whitcroft, (Tue Apr 8, 1:35 pm)
Re: [PATCH 1/1] checkpatch: nested structs, Jan Engelhardt, (Tue Apr 8, 1:59 pm)
speck-geostationary