Skip to content

Commit

Permalink
checkpatch: add missing WARN argument for min_t and max_t tests
Browse files Browse the repository at this point in the history
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]>
  • 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
Original file line number Diff line number Diff line change
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.