Skip to content

Commit 969bea5

Browse files
Kefeng Wangpmladek
authored andcommitted
checkpatch: Drop pr_warning check
All pr_warning are removed from kernel, let's cleanup pr_warning check in checkpatch. Link: http://lkml.kernel.org/r/[email protected] To: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Andy Whitcroft <[email protected]> Signed-off-by: Kefeng Wang <[email protected]> Acked-by: Joe Perches <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
1 parent 61ff72f commit 969bea5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

scripts/checkpatch.pl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4121,15 +4121,6 @@ sub process {
41214121
"Prefer [subsystem eg: netdev]_$level2([subsystem]dev, ... then dev_$level2(dev, ... then pr_$level(... to printk(KERN_$orig ...\n" . $herecurr);
41224122
}
41234123

4124-
if ($line =~ /\bpr_warning\s*\(/) {
4125-
if (WARN("PREFER_PR_LEVEL",
4126-
"Prefer pr_warn(... to pr_warning(...\n" . $herecurr) &&
4127-
$fix) {
4128-
$fixed[$fixlinenr] =~
4129-
s/\bpr_warning\b/pr_warn/;
4130-
}
4131-
}
4132-
41334124
if ($line =~ /\bdev_printk\s*\(\s*KERN_([A-Z]+)/) {
41344125
my $orig = $1;
41354126
my $level = lc($orig);

0 commit comments

Comments
 (0)