]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xdrgen: Fix union declarations
authorChuck Lever <chuck.lever@oracle.com>
Wed, 5 Nov 2025 15:26:06 +0000 (10:26 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 25 Nov 2025 14:09:42 +0000 (09:09 -0500)
Add a missing template file. This file is used when a union is
defined as a public API (ie, "pragma public <union name>;").

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2 [new file with mode: 0644]

diff --git a/tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2 b/tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2
new file mode 100644 (file)
index 0000000..8162911
--- /dev/null
@@ -0,0 +1,4 @@
+{# SPDX-License-Identifier: GPL-2.0 #}
+
+bool xdrgen_decode_{{ name }}(struct xdr_stream *xdr, struct {{ name }} *ptr);
+bool xdrgen_encode_{{ name }}(struct xdr_stream *xdr, const struct {{ name }} *value);