tools: ynl: skip the explicit op array size when not needed
authorJakub Kicinski <kuba@kernel.org>
Tue, 21 Mar 2023 04:41:59 +0000 (21:41 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Mar 2023 04:45:31 +0000 (21:45 -0700)
commit56c874f7dbcab2ab5cf8055d46a2ef36dec3d664
treeebd75ecb6b16964eec2d8c7254b81e534ca28e8b
parent85496c9b3bf8dbe15e2433d3a0197954d323cadc
tools: ynl: skip the explicit op array size when not needed

Jiri suggests it reads more naturally to skip the explicit
array size when possible. When we export the symbol we want
to make sure that the size is right but for statics its
not needed.

Link: https://lore.kernel.org/r/20230321044159.1031040-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/netdev-genl-gen.c
tools/net/ynl/ynl-gen-c.py