aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc.py
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <[email protected]>2025-04-08 10:09:14 +0000
committerJonathan Corbet <[email protected]>2025-04-09 18:10:33 +0000
commit4fa5e411379af1baabdff088196da977799fd46e (patch)
treea039b7ab64cecdb6a553cff6eb25e7a2328d0b4f /scripts/kernel-doc.py
parentscripts/kernel-doc.py: move output classes to a separate file (diff)
downloadkernel-4fa5e411379af1baabdff088196da977799fd46e.tar.gz
kernel-4fa5e411379af1baabdff088196da977799fd46e.zip
scripts/kernel-doc.py: convert message output to an interactor
Instead of directly printing output messages, change kdoc classes to return an interactor with the output message, letting the actual display to happen at the command-line command. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/557304c8458f1fb4aa2e833f4bdaff953094ddcb.1744106242.git.mchehab+huawei@kernel.org
Diffstat (limited to 'scripts/kernel-doc.py')
-rwxr-xr-xscripts/kernel-doc.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/kernel-doc.py b/scripts/kernel-doc.py
index abff78e9160f..63efec4b3f4b 100755
--- a/scripts/kernel-doc.py
+++ b/scripts/kernel-doc.py
@@ -283,9 +283,12 @@ def main():
kfiles.parse()
- kfiles.msg(enable_lineno=args.enable_lineno, export=args.export,
- internal=args.internal, symbol=args.symbol,
- nosymbol=args.nosymbol)
+ for t in kfiles.msg(enable_lineno=args.enable_lineno, export=args.export,
+ internal=args.internal, symbol=args.symbol,
+ nosymbol=args.nosymbol):
+ msg = t[1]
+ if msg:
+ print(msg)
# Call main method