Commit be92641
scripts/kernel-doc: Do not track section counter across processed files
The section counter tracks how many sections of kernel-doc were added.
The only real use of the counter value is to check if anything was
actually supposed to be output and give a warning is nothing is
available.
The current logic of remembering the initial value and then resetting
the value then when processing each file means that if a file has the
same number of sections as the previously processed one, a warning is
incorrectly given.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20241008082905.4005524-1-wenst@chromium.org1 parent 6a32c8d commit be92641
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2322 | 2322 | | |
2323 | 2323 | | |
2324 | 2324 | | |
2325 | | - | |
2326 | 2325 | | |
2327 | 2326 | | |
2328 | 2327 | | |
| |||
2360 | 2359 | | |
2361 | 2360 | | |
2362 | 2361 | | |
2363 | | - | |
2364 | | - | |
| 2362 | + | |
2365 | 2363 | | |
2366 | 2364 | | |
2367 | 2365 | | |
| |||
0 commit comments