forked from Minki/linux
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: e3c9fc78f0
("tools/rv: Add dot2c")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
parent
9abf2313ad
commit
21a1994b64
@ -111,7 +111,7 @@ class Dot2c(Automata):
|
||||
|
||||
def format_aut_init_header(self):
|
||||
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
|
||||
|
||||
def __get_string_vector_per_line_content(self, buff):
|
||||
|
Loading…
Reference in New Issue
Block a user