Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -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);
			}
			}
		}
		}