Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: kdoc_output: raise an error if full_proto not available for var

This is mandatory, but if it is missing, we need to know what
symbol had problems.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <0c3d9dd25889784b999efdb354ade48264c0e03c.1774256269.git.mchehab+huawei@kernel.org>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
9c391181 e786fab2

+3 -1
+3 -1
tools/lib/python/kdoc/kdoc_output.py
··· 513 513 def out_var(self, fname, name, args): 514 514 oldprefix = self.lineprefix 515 515 ln = args.declaration_start_line 516 - full_proto = args.other_stuff["full_proto"] 516 + full_proto = args.other_stuff.get("full_proto") 517 + if not full_proto: 518 + raise KeyError(f"Can't find full proto for {name} variable") 517 519 518 520 self.lineprefix = " " 519 521