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

Commit 11232688 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by Linus Torvalds
Browse files

checkpatch.pl: be silent when -q and --ignore is given



Fix checkpatch.pl when both -q and --ignore are given and prevents it from
printing a

NOTE: Ignored message types: blah

messages.

E.g., if I use -q --ignore PREFER_PACKED,PREFER_ALIGNED, i see:

NOTE: Ignored message types: PREFER_ALIGNED PREFER_PACKED

It makes no sense to print this when -q is given.

Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe 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 d1fe9c09
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3474,13 +3474,12 @@ sub process {
		}
	}

	if (keys %ignore_type) {
	if ($quiet == 0 && keys %ignore_type) {
	    print "NOTE: Ignored message types:";
	    foreach my $ignore (sort keys %ignore_type) {
		print " $ignore";
	    }
	    print "\n";
	    print "\n" if ($quiet == 0);
	    print "\n\n";
	}

	if ($clean == 1 && $quiet == 0) {