projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed43c4e
)
checkpatch: if no filenames then read stdin
author
Allen Hubbe
<allenbh@gmail.com>
Tue, 2 Aug 2016 21:04:47 +0000
(14:04 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 2 Aug 2016 23:35:13 +0000
(19:35 -0400)
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl
patch
|
blob
|
blame
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 6f2ce0cafe6f5b998892a6f54b0380d1e85f77b2..4de3cc42fc50dca7a3d620ccca99cb4a55b685f5 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
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 {