Patch "rv/dot2c: Make automaton definition static" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rv/dot2c: Make automaton definition static

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rv-dot2c-make-automaton-definition-static.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 0174f562e0ab15929099338df3d5d768bea8caa1
Author: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
Date:   Tue Aug 23 17:20:28 2022 +0200

    rv/dot2c: Make automaton definition static
    
    [ Upstream commit 21a1994b6492b12e55dbf39d15271430ef6839f0 ]
    
    Monitor's automata definition is only used locally, so make dot2c generate
    a static definition.
    
    Link: https://lore.kernel.org/all/202208210332.gtHXje45-lkp@xxxxxxxxx
    Link: https://lore.kernel.org/all/202208210358.6HH3OrVs-lkp@xxxxxxxxx
    Link: https://lkml.kernel.org/r/ffbb92010f643307766c9307fd42f416e5b85fa0.1661266564.git.bristot@xxxxxxxxxx
    
    Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
    Fixes: e3c9fc78f096 ("tools/rv: Add dot2c")
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Signed-off-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
    Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/verification/dot2/dot2c.py b/tools/verification/dot2/dot2c.py
index fa73353f7e56..be8a364a469b 100644
--- a/tools/verification/dot2/dot2c.py
+++ b/tools/verification/dot2/dot2c.py
@@ -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):



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux