From: Jakub Kicinski Date: Thu, 8 Jun 2023 21:12:00 +0000 (-0700) Subject: tools: ynl-gen: support / skip pads on the way to kernel X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=76abff37f0d70066503747a76deb40b752fb23be;p=linux.git tools: ynl-gen: support / skip pads on the way to kernel Kernel does not have padding requirements for 64b attrs. We can ignore pad attrs. Signed-off-by: Jakub Kicinski --- diff --git a/tools/net/ynl/ynl-gen-c.py b/tools/net/ynl/ynl-gen-c.py index be860dee72395..7b051c00cfc30 100755 --- 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):