Skip to content

Commit 43ecfe6

Browse files
mchehabJonathan Corbet
authored andcommitted
scripts/kernel-doc.py: Set an output format for --none
Now that warnings output is deferred to the output plugin, we need to have an output style for none as well. So, use the OutputFormat base class on such cases. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/caa1089e16f4609f792ff26731ad9e9c3a6f6b1d.1744106242.git.mchehab+huawei@kernel.org
1 parent feec610 commit 43ecfe6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/lib/kdoc/kdoc_files.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from dateutil import tz
2121

2222
from kdoc_parser import KernelDoc
23+
from kdoc_output import OutputFormat
2324

2425

2526
class GlobSourceFiles:
@@ -138,6 +139,9 @@ def __init__(self, verbose=False, out_style=None,
138139
if not modulename:
139140
modulename = "Kernel API"
140141

142+
if out_style is None:
143+
out_style = OutputFormat()
144+
141145
dt = datetime.now()
142146
if os.environ.get("KBUILD_BUILD_TIMESTAMP", None):
143147
# use UTC TZ

0 commit comments

Comments
 (0)