提交 45107ff6 编写于 作者: A Allen Hubbe 提交者: Linus Torvalds

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.comSigned-off-by: NAllen Hubbe <allenbh@gmail.com>
Acked-by: NJoe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 ed43c4e5
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册