mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00: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:
parent
041962d5c6
commit
c060f8168b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user