All of lore.kernel.org
 help / color / mirror / Atom feed
* + checkpatch-if-no-filenames-then-read-stdin.patch added to -mm tree
@ 2016-08-01 23:48 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-08-01 23:48 UTC (permalink / raw)
  To: allenbh, apw, joe, mm-commits


The patch titled
     Subject: checkpatch: if no filenames then read stdin
has been added to the -mm tree.  Its filename is
     checkpatch-if-no-filenames-then-read-stdin.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/checkpatch-if-no-filenames-then-read-stdin.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/checkpatch-if-no-filenames-then-read-stdin.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Allen Hubbe <allenbh@gmail.com>
Subject: checkpatch: if no filenames then read stdin

If no filenames are given, then read the patch from stdin.

Link: http://lkml.kernel.org/r/a8784f291ccb5067361992bf5d41ff6cfb0ce5cb.1469830917.git.allenbh@gmail.com
Signed-off-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/checkpatch.pl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN scripts/checkpatch.pl~checkpatch-if-no-filenames-then-read-stdin scripts/checkpatch.pl
--- a/scripts/checkpatch.pl~checkpatch-if-no-filenames-then-read-stdin
+++ a/scripts/checkpatch.pl
@@ -228,9 +228,9 @@ if ($^V && $^V lt $minimum_perl_version)
 	}
 }
 
+#if no filenames are given, push '-' to read patch from stdin
 if ($#ARGV < 0) {
-	print "$P: no input files\n";
-	exit(1);
+	push(@ARGV, '-');
 }
 
 sub hash_save_array_words {
_

Patches currently in -mm which might be from allenbh@gmail.com are

checkpatch-check-signoff-when-reading-stdin.patch
checkpatch-if-no-filenames-then-read-stdin.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-01 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01 23:48 + checkpatch-if-no-filenames-then-read-stdin.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.