mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 19:12:14 +00:00
scripts/lib/kdoc/kdoc_files.py: don't try to join None
If out_msg() returns None, it means that an unknown declaration was found. Avoid letting the script crash on such case. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/4334d16f14cfd93e611b290fb56c35d236cadcb7.1744685912.git.mchehab+huawei@kernel.org
This commit is contained in:
committed by
Jonathan Corbet
parent
f0ba72e655
commit
439111ee0c
@@ -270,13 +270,16 @@ class KernelFiles():
|
||||
|
||||
msg = ""
|
||||
for name, arg in self.results[fname]:
|
||||
msg += self.out_msg(fname, name, arg)
|
||||
m = self.out_msg(fname, name, arg)
|
||||
|
||||
if msg is None:
|
||||
if m is None:
|
||||
ln = arg.get("ln", 0)
|
||||
dtype = arg.get('type', "")
|
||||
|
||||
self.config.log.warning("%s:%d Can't handle %s",
|
||||
fname, ln, dtype)
|
||||
else:
|
||||
msg += m
|
||||
|
||||
if msg:
|
||||
yield fname, msg
|
||||
|
||||
Reference in New Issue
Block a user