Commit 21a1994b authored by Daniel Bristot de Oliveira's avatar Daniel Bristot de Oliveira Committed by Steven Rostedt (Google)

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/202208210332.gtHXje45-lkp@intel.com
Link: https://lore.kernel.org/all/202208210358.6HH3OrVs-lkp@intel.com
Link: https://lkml.kernel.org/r/ffbb92010f643307766c9307fd42f416e5b85fa0.1661266564.git.bristot@kernel.org

Cc: Steven Rostedt <rostedt@goodmis.org>
Fixes: e3c9fc78 ("tools/rv: Add dot2c")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 9abf2313
...@@ -111,7 +111,7 @@ class Dot2c(Automata): ...@@ -111,7 +111,7 @@ class Dot2c(Automata):
def format_aut_init_header(self): def format_aut_init_header(self):
buff = [] buff = []
buff.append("struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def)) buff.append("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
return buff return buff
def __get_string_vector_per_line_content(self, buff): def __get_string_vector_per_line_content(self, buff):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment