Commit 30ecad51 authored by Hui Zhu's avatar Hui Zhu Committed by Linus Torvalds

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: default avatarHui Zhu <teawater@gmail.com>
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3d1c2f72
...@@ -2574,7 +2574,8 @@ sub process { ...@@ -2574,7 +2574,8 @@ sub process {
} else { } else {
$cast = $cast2; $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);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment