Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: Use skiplist when checking sysctl admin-guide

Use a skiplist to "skip" the titles in the guide documentation
(Documentation/admin-guide/sysctl/*) that are not sysctls. This will
give a more accurate account of what sysctl are miss-documented.

Signed-off-by: Joel Granados <joel.granados@kernel.org>

+17 -4
+17 -4
scripts/check-sysctl-docs
··· 17 17 print "Please specify the table to look for using the table variable" > "/dev/stderr" 18 18 exit 1 19 19 } 20 + 21 + # Documentation title skiplist 22 + skiplist[0] = "^Documentation for" 23 + skiplist[1] = "Network core options$" 24 + skiplist[2] = "POSIX message queues filesystem$" 25 + skiplist[3] = "Configuration options" 26 + skiplist[4] = ". /proc/sys/fs" 27 + skiplist[5] = "^Introduction$" 28 + skiplist[6] = "^seccomp$" 29 + skiplist[7] = "^pty$" 30 + skiplist[8] = "^firmware_config$" 31 + skiplist[9] = "^random$" 20 32 } 21 33 22 34 # The following globals are used: ··· 65 53 66 54 # Stage 1: build the list of documented entries 67 55 FNR == NR && /^=+$/ { 68 - if (prevline ~ /Documentation for/) { 69 - # This is the main title 70 - next 71 - } 56 + for (i in skiplist) { 57 + if (prevline ~ skiplist[i]) { 58 + next 59 + } 60 + } 72 61 73 62 # The previous line is a section title, parse it 74 63 $0 = prevline