aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/sunrpc/xdrgen/templates/C/enum/encoder
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-09-29 20:50:15 -0400
committerChuck Lever <chuck.lever@oracle.com>2024-11-11 13:42:00 -0500
commit6e853dcd2d3d6f796597c1042340a2de0ce2469f (patch)
tree3a1b3739fc0a6ce38ede29bd38d7d9beb4a02f57 /tools/net/sunrpc/xdrgen/templates/C/enum/encoder
parentxdrgen: Rename enum's declaration Jinja2 template (diff)
downloadlinux-6e853dcd2d3d6f796597c1042340a2de0ce2469f.tar.gz
linux-6e853dcd2d3d6f796597c1042340a2de0ce2469f.zip
xdrgen: Rename "enum yada" types as just "yada"
This simplifies the generated C code and makes way for supporting big-endian XDR enums. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/net/sunrpc/xdrgen/templates/C/enum/encoder')
-rw-r--r--tools/net/sunrpc/xdrgen/templates/C/enum/encoder/enum.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/sunrpc/xdrgen/templates/C/enum/encoder/enum.j2 b/tools/net/sunrpc/xdrgen/templates/C/enum/encoder/enum.j2
index bd0a770e50f2..67245b9a914d 100644
--- a/tools/net/sunrpc/xdrgen/templates/C/enum/encoder/enum.j2
+++ b/tools/net/sunrpc/xdrgen/templates/C/enum/encoder/enum.j2
@@ -8,7 +8,7 @@ bool
{% else %}
static bool __maybe_unused
{% endif %}
-xdrgen_encode_{{ name }}(struct xdr_stream *xdr, enum {{ name }} value)
+xdrgen_encode_{{ name }}(struct xdr_stream *xdr, {{ name }} value)
{
return xdr_stream_encode_u32(xdr, value) == XDR_UNIT;
}