lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20101125192545.GV1522@bicker>
Date:	Thu, 25 Nov 2010 22:25:45 +0300
From:	Dan Carpenter <error27@...il.com>
To:	Andy Whitcroft <apw@...onical.com>, joe@...ches.com
Cc:	linux-kernel@...r.kernel.org
Subject: [patch] checkpatch.pl: discourage pointless changes

This adds a message when people use the --file option to checkpatch.pl:

NOTE: Checkpatch is a only a tool.
      Only send patches which make the code unambiguously more readable.
      Don't waste maintainer time.

Most people use checkpatch.pl to check patches which they have written,
but newbies use it with the --file option to find things to change.
>From the newbie perspective, we wrote checkpatch.pl so we should 
obviously be happy to fix all the errors it reports.  But actually 
maitainers get cranky and that makes the newbies sad and everyone has
a bad day.

The message is quite blunt, but probably if people's feelings are hurt
by a print from a script that means they are taking the script too
seriously.

Signed-off-by: Dan Carpenter <error27@...il.com>

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e3c7fc0..36f95c1 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2937,6 +2937,13 @@ sub process {
 		}
 	}
 
+	if ($file && $clean == 0 && $quiet == 0) {
+		print "NOTE: Checkpatch is a only a tool.\n";
+		print "      Only send patches which make the code unambiguously more readable.\n";
+		print "      Don't waste maintainer time.\n";
+		print "\n";
+	}
+
 	if ($clean == 1 && $quiet == 0) {
 		print "$vname has no obvious style problems and is ready for submission.\n"
 	}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ