[PATCH v3 22/33] scripts/kernel-doc.py: Set an output format for --none

Mauro Carvalho Chehab
2025-04-08T10:09:55Z

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>
---
scripts/lib/kdoc/kdoc_files.py | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/scripts/lib/kdoc/kdoc_files.py b/scripts/lib/kdoc/kdoc_files.py
index 4c04546a74fe..dd3dbe87520b 100755
--- a/scripts/lib/kdoc/kdoc_files.py
+++ b/scripts/lib/kdoc/kdoc_files.py
@@ -20,6 +20,7 @@ from datetime import datetime
from dateutil import tz

from kdoc_parser import KernelDoc
+from kdoc_output import OutputFormat

class GlobSourceFiles:
@@ -138,6 +139,9 @@ class KernelFiles():
if not modulename:
modulename = "Kernel API"

+ if out_style is None:
+ out_style = OutputFormat()
+
dt = datetime.now()
if os.environ.get("KBUILD_BUILD_TIMESTAMP", None):
# use UTC TZ
--
2.49.0