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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Joe Perches <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 8301c71 commit 2581ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)