Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpatch: really skip LONG_LINE_* when LONG_LINE is ignored

For a printout to happen, all types must be set to "show". So, AND is
needed for the flags, not OR, if we want to ignore something.

Link: https://lkml.kernel.org/r/20240610150420.2279-2-wsa+renesas@sang-engineering.com
Fixes: 47e0c88b37a5 ("checkpatch: categorize some long line length checks")
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Wolfram Sang and committed by
Andrew Morton
d6bb3951 68142cb6

+1 -1
+1 -1
scripts/checkpatch.pl
··· 3858 3858 } 3859 3859 3860 3860 if ($msg_type ne "" && 3861 - (show_type("LONG_LINE") || show_type($msg_type))) { 3861 + show_type("LONG_LINE") && show_type($msg_type)) { 3862 3862 my $msg_level = \&WARN; 3863 3863 $msg_level = \&CHK if ($file); 3864 3864 &{$msg_level}($msg_type,