]> Git Repo - linux.git/commit
tools: ynl-gen: handle do ops with no input attrs
authorJakub Kicinski <[email protected]>
Fri, 6 Oct 2023 13:50:32 +0000 (06:50 -0700)
committerJakub Kicinski <[email protected]>
Tue, 10 Oct 2023 02:45:15 +0000 (19:45 -0700)
commit8cea95b0bd7930367f11e2abceda6e096dd18943
treee8abb89ef2c13197bd022c3e966e519266c8e6fd
parenta4cd2f311a9a51a727db0a5cc535bb223b0e8453
tools: ynl-gen: handle do ops with no input attrs

The code supports dumps with no input attributes currently
thru a combination of special-casing and luck.
Clean up the handling of ops with no inputs. Create empty
Structs, and skip printing of empty types.
This makes dos with no inputs work.

Tested-by: Lorenzo Bianconi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
tools/net/ynl/ynl-gen-c.py
This page took 0.052418 seconds and 4 git commands to generate.