From: Chuck Lever Date: Wed, 5 Nov 2025 15:26:06 +0000 (-0500) Subject: xdrgen: Fix union declarations X-Git-Tag: v6.19-rc1~77^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7cb94fad4e6cec354a3ea779f91fe5560fb72b6;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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);