[<prev] [next>] [day] [month] [year] [list]
Message-Id: <c8bf994cb2ac9385debb1c40674c2c0e71886be5.1313118939.git.joe@perches.com>
Date: Thu, 11 Aug 2011 20:21:19 -0700
From: Joe Perches <joe@...ches.com>
To: Linus Torvalds <torvalds@...ux-foundation.org>,
Andy Whitcroft <apw@...onical.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Hui Zhu <teawater@...il.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] checkpatch: Add missing WARN argument for min_t and max_t tests
From: Hui Zhu <teawater@...il.com>
From: Hui Zhu <teawater@...il.com>
The test for bad uses of min_t and max_t is missing the --ignore type.
Add it.
Signed-off-by: Hui Zhu <teawater@...il.com>
Signed-off-by: Joe Perches <joe@...ches.com>
---
scripts/checkpatch.pl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9d761c9..3dfc471 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2574,7 +2574,8 @@ sub process {
} else {
$cast = $cast2;
}
- WARN("$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . $herecurr);
+ WARN("MINMAX",
+ "$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . $herecurr);
}
}
--
1.7.6.405.gc1be0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists