]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xdrgen: Address some checkpatch whitespace complaints
authorChuck Lever <chuck.lever@oracle.com>
Mon, 1 Dec 2025 22:19:46 +0000 (17:19 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 26 Jan 2026 15:10:58 +0000 (10:10 -0500)
commit4329010ad9c36775e7092e451c37c24c4f90243f
treef19827739f37006d6ea8aedb4e1e3e12e1e64c92
parent9654a0388a3abcfa51cb2d010a6624a6f1f46710
xdrgen: Address some checkpatch whitespace complaints

This is a roll-up of three template fixes that eliminate noise from
checkpatch output so that it's easier to spot non-trivial problems.

To follow conventional kernel C style, when a union declaration is
marked with "pragma public", there should be a blank line between
the emitted "union xxx { ... };" and the decoder and encoder
function declarations.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
tools/net/sunrpc/xdrgen/templates/C/enum/declaration/enum.j2
tools/net/sunrpc/xdrgen/templates/C/enum/definition/close.j2
tools/net/sunrpc/xdrgen/templates/C/enum/definition/close_be.j2
tools/net/sunrpc/xdrgen/templates/C/union/definition/close.j2