projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f96ec7
)
tools: ynl-gen: support / skip pads on the way to kernel
author
Jakub Kicinski
<kuba@kernel.org>
Thu, 8 Jun 2023 21:12:00 +0000
(14:12 -0700)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 9 Jun 2023 21:40:31 +0000
(14:40 -0700)
Kernel does not have padding requirements for 64b attrs.
We can ignore pad attrs.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/ynl-gen-c.py
patch
|
blob
|
history
diff --git
a/tools/net/ynl/ynl-gen-c.py
b/tools/net/ynl/ynl-gen-c.py
index be860dee72395ce6c9166acdc431ff6a5865cfb7..7b051c00cfc302b9eb62efbc73a90d00fe5374f6 100755
(executable)
--- a/
tools/net/ynl/ynl-gen-c.py
+++ b/
tools/net/ynl/ynl-gen-c.py
@@
-227,12
+227,18
@@
class TypePad(Type):
def _attr_typol(self):
return '.type = YNL_PT_IGNORE, '
+ def attr_put(self, ri, var):
+ pass
+
def attr_get(self, ri, var, first):
pass
def attr_policy(self, cw):
pass
+ def setter(self, ri, space, direction, deref=False, ref=None):
+ pass
+
class TypeScalar(Type):
def __init__(self, family, attr_set, attr, value):