tools: ynl-gen: move local vars after the opening bracket
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Apr 2025 21:18:45 +0000 (14:18 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:09:41 +0000 (18:09 -0700)
commitdfa464b4a603984d648a9beb9bce72df5858c1e2
tree3c2bbca0156142d69119bc78acb25fe4c45f35e9
parent4d07bbf2d45683841e578a2f255e4c174534bf38
tools: ynl-gen: move local vars after the opening bracket

The "function writing helper" tries to put local variables
between prototype and the opening bracket. Clearly wrong,
but up until now nothing actually uses it to write local
vars so it wasn't noticed.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250414211851.602096-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/ynl_gen_c.py