[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1621239159-21139-1-git-send-email-yangtiezhu@loongson.cn>
Date: Mon, 17 May 2021 16:12:39 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Dwaipayan Ray <dwaipayanray1@...il.com>,
Lukas Bulwahn <lukas.bulwahn@...il.com>,
Joe Perches <joe@...ches.com>, Jonathan Corbet <corbet@....net>
Cc: linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH v2] Documentation: checkpatch: add description if no filenames are given
After commit 45107ff6d526 ("checkpatch: if no filenames then read stdin"),
if no filenames are given, it will read patch from stdin rather than exit
directly, it is a bit confusing whether the script hangs, I do not quite
know what to do next until I understood the code logic.
It is unnecessary to print some info if no filenames are given, because it
is like trying to make cat without command line arguments emit something,
just add description for somebody that actually reads the available kernel
documentation on checkpatch.
Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
---
Documentation/dev-tools/checkpatch.rst | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst
index 51fed1b..3eb9ead 100644
--- a/Documentation/dev-tools/checkpatch.rst
+++ b/Documentation/dev-tools/checkpatch.rst
@@ -22,6 +22,8 @@ Usage::
./scripts/checkpatch.pl [OPTION]... [FILE]...
+When FILE is -, or absent, checkpatch reads from standard input.
+
Available options:
- -q, --quiet
--
2.1.0
Powered by blists - more mailing lists