Skip to content

Commit 2581ac7

Browse files
TimFroidcoeurtorvalds
authored andcommitted
checkpatch: correct check for kernel parameters doc
Adding a new kernel parameter with documentation makes checkpatch complain __setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.rst The list of kernel parameters has moved to a separate txt file, but checkpatch has not been updated for this. Make checkpatch.pl look for the documentation for new kernel parameters in kernel-parameters.txt instead of kernel-parameters.rst. Fixes: e52347b ("Documentation/admin-guide: split the kernel parameter list to a separate file") Signed-off-by: Tim Froidcoeur <tim.froidcoeur@tessares.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Joe Perches <joe@perches.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8301c71 commit 2581ac7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎scripts/checkpatch.pl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,7 +2407,7 @@ sub process {
24072407

24082408
if ($rawline=~/^\+\+\+\s+(\S+)/) {
24092409
$setup_docs = 0;
2410-
if ($1 =~ m@Documentation/admin-guide/kernel-parameters.rst$@) {
2410+
if ($1 =~ m@Documentation/admin-guide/kernel-parameters.txt$@) {
24112411
$setup_docs = 1;
24122412
}
24132413
#next;
@@ -6388,7 +6388,7 @@ sub process {
63886388

63896389
if (!grep(/$name/, @setup_docs)) {
63906390
CHK("UNDOCUMENTED_SETUP",
6391-
"__setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.rst\n" . $herecurr);
6391+
"__setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.txt\n" . $herecurr);
63926392
}
63936393
}
63946394

0 commit comments

Comments
 (0)