From f7cb94fad4e6cec354a3ea779f91fe5560fb72b6 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Wed, 5 Nov 2025 10:26:06 -0500 Subject: [PATCH] xdrgen: Fix union declarations Add a missing template file. This file is used when a union is defined as a public API (ie, "pragma public ;"). Signed-off-by: Chuck Lever --- .../net/sunrpc/xdrgen/templates/C/union/declaration/close.j2 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2 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 index 0000000000000..816291184e8c5 --- /dev/null +++ b/tools/net/sunrpc/xdrgen/templates/C/union/declaration/close.j2 @@ -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); -- 2.47.3