diff options
| author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2026-03-23 10:10:52 +0100 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-03-25 13:36:46 -0600 |
| commit | 9c3911812b4a719623ea7502b419929eb01b2fc2 (patch) | |
| tree | f4420a2f8fe8cf423a6c2fa5e388069bc83b1b9a /tools/lib/python/kdoc/kdoc_output.py | |
| parent | e786fab2cfcc9ab65adf35d2eab4ca94abe1955f (diff) | |
| download | lwn-9c3911812b4a719623ea7502b419929eb01b2fc2.tar.gz lwn-9c3911812b4a719623ea7502b419929eb01b2fc2.zip | |
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>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_output.py')
| -rw-r--r-- | tools/lib/python/kdoc/kdoc_output.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lib/python/kdoc/kdoc_output.py b/tools/lib/python/kdoc/kdoc_output.py index 2bfcd356654b..de107ab4a281 100644 --- a/tools/lib/python/kdoc/kdoc_output.py +++ b/tools/lib/python/kdoc/kdoc_output.py @@ -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 = " " |
