diff options
author | Hui Zhu <teawater@gmail.com> | 2011-08-25 18:59:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-25 19:25:33 -0400 |
commit | 30ecad51849ae132dc6ef6ddb62d499c7257515b (patch) | |
tree | cf6781cde6f1929c93c2d3c393188257aa7031e9 /scripts | |
parent | 3d1c2f72a9464c9880054194af0c041d7beb9124 (diff) |
checkpatch: add missing WARN argument for min_t and max_t tests
The test for bad usage of min_t() and max_t() is missing the --ignore
type. Add it.
Signed-off-by: Hui Zhu <teawater@gmail.com>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9d761c95eca2..3dfc47134e51 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -2574,7 +2574,8 @@ sub process { | |||
2574 | } else { | 2574 | } else { |
2575 | $cast = $cast2; | 2575 | $cast = $cast2; |
2576 | } | 2576 | } |
2577 | WARN("$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . $herecurr); | 2577 | WARN("MINMAX", |
2578 | "$call() should probably be ${call}_t($cast, $arg1, $arg2)\n" . $herecurr); | ||
2578 | } | 2579 | } |
2579 | } | 2580 | } |
2580 | 2581 | ||