projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d1c2f7
)
checkpatch: add missing WARN argument for min_t and max_t tests
author
Hui Zhu
<
[email protected]
>
Thu, 25 Aug 2011 22:59:08 +0000
(15:59 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 25 Aug 2011 23:25:33 +0000
(16:25 -0700)
The test for bad usage of min_t() and max_t() is missing the --ignore
type. Add it.
Signed-off-by: Hui Zhu <
[email protected]
>
Signed-off-by: Joe Perches <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 9d761c95eca2988e0ff227baa8619b684d6eb33a..3dfc47134e51e9cbee67aab2490360927ff7c0f4 100755
(executable)
--- 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);
}
}