diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2024-09-30 02:50:14 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-11-11 19:41:59 +0100 |
commit | c060f8168bdf22aa986970955af99702d142dfbe (patch) | |
tree | e356e7192c25ff32de120dd4229d27ab35695d38 /tools/net | |
parent | xdrgen: Rename "variable-length strings" (diff) | |
download | linux-c060f8168bdf22aa986970955af99702d142dfbe.tar.xz linux-c060f8168bdf22aa986970955af99702d142dfbe.zip |
xdrgen: Rename enum's declaration Jinja2 template
"close.j2" is a confusing name.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/net')
-rw-r--r-- | tools/net/sunrpc/xdrgen/generators/enum.py | 2 | ||||
-rw-r--r-- | tools/net/sunrpc/xdrgen/templates/C/enum/declaration/enum.j2 (renamed from tools/net/sunrpc/xdrgen/templates/C/enum/declaration/close.j2) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/sunrpc/xdrgen/generators/enum.py b/tools/net/sunrpc/xdrgen/generators/enum.py index 855e43f4ae38..e37b5c297821 100644 --- a/tools/net/sunrpc/xdrgen/generators/enum.py +++ b/tools/net/sunrpc/xdrgen/generators/enum.py @@ -18,7 +18,7 @@ class XdrEnumGenerator(SourceGenerator): def emit_declaration(self, node: _XdrEnum) -> None: """Emit one declaration pair for an XDR enum type""" if node.name in public_apis: - template = self.environment.get_template("declaration/close.j2") + template = self.environment.get_template("declaration/enum.j2") print(template.render(name=node.name)) def emit_definition(self, node: _XdrEnum) -> None: diff --git a/tools/net/sunrpc/xdrgen/templates/C/enum/declaration/close.j2 b/tools/net/sunrpc/xdrgen/templates/C/enum/declaration/enum.j2 index ab1e576c9531..ab1e576c9531 100644 --- a/tools/net/sunrpc/xdrgen/templates/C/enum/declaration/close.j2 +++ b/tools/net/sunrpc/xdrgen/templates/C/enum/declaration/enum.j2 |