mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
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>
This commit is contained in:
committed by
Jonathan Corbet
parent
e786fab2cf
commit
9c3911812b
@@ -513,7 +513,9 @@ class RestFormat(OutputFormat):
|
||||
def out_var(self, fname, name, args):
|
||||
oldprefix = self.lineprefix
|
||||
ln = args.declaration_start_line
|
||||
full_proto = args.other_stuff["full_proto"]
|
||||
full_proto = args.other_stuff.get("full_proto")
|
||||
if not full_proto:
|
||||
raise KeyError(f"Can't find full proto for {name} variable")
|
||||
|
||||
self.lineprefix = " "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user