Skip to content

Commit 21a1994

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
rv/dot2c: Make automaton definition static
Monitor's automata definition is only used locally, so make dot2c generate a static definition. Link: https://lore.kernel.org/all/[email protected] Link: https://lore.kernel.org/all/[email protected] Link: https://lkml.kernel.org/r/ffbb92010f643307766c9307fd42f416e5b85fa0.1661266564.git.bristot@kernel.org Cc: Steven Rostedt <[email protected]> Fixes: e3c9fc7 ("tools/rv: Add dot2c") Reported-by: kernel test robot <[email protected]> Signed-off-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 9abf231 commit 21a1994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/verification/dot2/dot2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def format_automaton_definition(self):
111111

112112
def format_aut_init_header(self):
113113
buff = []
114-
buff.append("struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
114+
buff.append("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
115115
return buff
116116

117117
def __get_string_vector_per_line_content(self, buff):

0 commit comments

Comments
 (0)