mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-12 01:10:19 +08:00
xdrgen: Rename enum's declaration Jinja2 template
"close.j2" is a confusing name. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user