diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-12-14 02:14:28 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-15 04:51:21 +0300 |
commit | f967a498fce89e9291f01b8f29109fe782d7670a (patch) | |
tree | 2729c704e5b34027361f5682f178ceaf7195e0c5 /tools/net/ynl/ynl-gen-c.py | |
parent | f6805072c2aa81e6441c797bd074f4ae2db0c66e (diff) | |
download | linux-f967a498fce89e9291f01b8f29109fe782d7670a.tar.xz |
tools: ynl-gen: fill in implementations for TypeUnused
Fill in more empty handlers for TypeUnused. When 'unused'
attr gets specified in a nested set we have to cleanly
skip it during code generation.
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20231213231432.2944749-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net/ynl/ynl-gen-c.py')
-rwxr-xr-x | tools/net/ynl/ynl-gen-c.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/net/ynl/ynl-gen-c.py b/tools/net/ynl/ynl-gen-c.py index 70e2c41e5bd6..2b7961838fb6 100755 --- a/tools/net/ynl/ynl-gen-c.py +++ b/tools/net/ynl/ynl-gen-c.py @@ -264,6 +264,15 @@ class TypeUnused(Type): def attr_policy(self, cw): pass + def attr_put(self, ri, var): + pass + + def attr_get(self, ri, var, first): + pass + + def setter(self, ri, space, direction, deref=False, ref=None): + pass + class TypePad(Type): def presence_type(self): |