Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
teawater authored and torvalds committed Aug 25, 2011
1 parent 3d1c2f7 commit 30ecad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checkpatch.pl
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 30ecad5

Please sign in to comment.