All of lore.kernel.org
 help / color / mirror / Atom feed
* - checkpatch-complex-macros-checks-miss-square-brackets.patch removed from -mm tree
@ 2008-10-18 23:14 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2008-10-18 23:14 UTC (permalink / raw)
  To: apw, mm-commits


The patch titled
     checkpatch: complex macros checks miss square brackets
has been removed from the -mm tree.  Its filename was
     checkpatch-complex-macros-checks-miss-square-brackets.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: checkpatch: complex macros checks miss square brackets
From: Andy Whitcroft <apw@shadowen.org>

We are missing 'simple' values which include square brackets.  Refactor to
ensure we handle nesting correctly and detect these simple forms.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/checkpatch.pl |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff -puN scripts/checkpatch.pl~checkpatch-complex-macros-checks-miss-square-brackets scripts/checkpatch.pl
--- a/scripts/checkpatch.pl~checkpatch-complex-macros-checks-miss-square-brackets
+++ a/scripts/checkpatch.pl
@@ -2142,9 +2142,10 @@ sub process {
 			$dstat =~ s/\s*$//s;
 
 			# Flatten any parentheses and braces
-			while ($dstat =~ s/\([^\(\)]*\)/1/) {
-			}
-			while ($dstat =~ s/\{[^\{\}]*\}/1/) {
+			while ($dstat =~ s/\([^\(\)]*\)/1/ ||
+			       $dstat =~ s/\{[^\{\}]*\}/1/ ||
+			       $dstat =~ s/\[[^\{\}]*\]/1/)
+			{
 			}
 
 			my $exceptions = qr{
_

Patches currently in -mm which might be from apw@shadowen.org are

origin.patch
mm-hugetlbc-make-functions-static-use-null-rather-than-0.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-18 23:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18 23:14 - checkpatch-complex-macros-checks-miss-square-brackets.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.