]> www.infradead.org Git - users/dwmw2/linux.git/commit
scripts/find-unused-docs: Fix massive false positives
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 27 Jan 2020 09:31:07 +0000 (10:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:36:53 +0000 (04:36 -0800)
commit483406427e2bb520c9c1e0f332f0e9ee25311f3b
tree3d0d7082ffc079431c851c22e9f0668ac1f8c20a
parentfb419c96e2d9b02b72dd289a77a0d266c07e0c20
scripts/find-unused-docs: Fix massive false positives

commit 1630146db2111412e7524d05d812ff8f2c75977e upstream.

scripts/find-unused-docs.sh invokes scripts/kernel-doc to find out if a
source file contains kerneldoc or not.

However, as it passes the no longer supported "-text" option to
scripts/kernel-doc, the latter prints out its help text, causing all
files to be considered containing kerneldoc.

Get rid of these false positives by removing the no longer supported
"-text" option from the scripts/kernel-doc invocation.

Cc: stable@vger.kernel.org # 4.16+
Fixes: b05142675310d2ac ("scripts: kernel-doc: get rid of unused output formats")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20200127093107.26401-1-geert+renesas@glider.be
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/find-unused-docs.sh