diff options
| author | Chen-Yu Tsai <wenst@chromium.org> | 2024-10-08 16:29:04 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:01:26 +0100 |
| commit | 560a210128d313f74c670095972f4b3fb4916ef5 (patch) | |
| tree | edb88f34c252caa65551b4598653ac541f37e95d /scripts/objdiff | |
| parent | 05024c3e49498280c5d44f48b8db75d2207c4f0e (diff) | |
| download | linux-560a210128d313f74c670095972f4b3fb4916ef5.tar.gz linux-560a210128d313f74c670095972f4b3fb4916ef5.tar.bz2 linux-560a210128d313f74c670095972f4b3fb4916ef5.zip | |
scripts/kernel-doc: Do not track section counter across processed files
[ Upstream commit be9264110e4e874622d588a75daf930539fdf6ea ]
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.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
