mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] checkpatch: avoid warning about Possible repeated word: 'Google'
@ 2023-10-13 17:27 Jakub Kicinski
  2023-10-13 18:11 ` Joe Perches
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Kicinski @ 2023-10-13 17:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jakub Kicinski, apw, joe, dwaipayanray1, lukas.bulwahn

syzbot stack traces often come with the following line:

 Hardware name: Google Google Compute Engine/Google Compute Engine...

This generates the repeated word warning from checkpatch.
It hit 49 times in the last 6 months in networking
(false-positive rate of 0.34%). Mute the warning for "Google",
there's no other word which comes close to being this clear
cut false-positive in our traffic.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: apw@canonical.com
CC: joe@perches.com
CC: dwaipayanray1@gmail.com
CC: lukas.bulwahn@gmail.com
---
 scripts/checkpatch.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 7d16f863edf1..c99f8f93cb4c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3524,6 +3524,8 @@ sub process {
 
 				next if (lc($first) ne lc($second));
 				next if ($first eq 'long');
+				# syzbot reports contain "Hardware name: Google Google Compute Engine"
+				next if ($first eq 'Google');
 
 				# check for character before and after the word matches
 				my $start_char = '';
-- 
2.41.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-13 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 17:27 [PATCH] checkpatch: avoid warning about Possible repeated word: 'Google' Jakub Kicinski
2023-10-13 18:11 ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®