Skip to content

Commit

Permalink
Merge tag 'trace-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/trace/linux-trace

Pull tracing fix from Steven Rostedt:
 "I missed this minor hardening of the kernel in the first pull.

   - Make monitor structures read only"

* tag 'trace-v6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  rv/monitors: Move monitor structure in rodata
  • Loading branch information
torvalds committed Dec 22, 2022
2 parents af9b3fa + bfa87ac commit 9d2f606
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kernel/trace/rv/monitors/wip/wip.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct automaton_wip {
bool final_states[state_max_wip];
};

static struct automaton_wip automaton_wip = {
static const struct automaton_wip automaton_wip = {
.state_names = {
"preemptive",
"non_preemptive"
Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/rv/monitors/wwnr/wwnr.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct automaton_wwnr {
bool final_states[state_max_wwnr];
};

static struct automaton_wwnr automaton_wwnr = {
static const struct automaton_wwnr automaton_wwnr = {
.state_names = {
"not_running",
"running"
Expand Down
2 changes: 1 addition & 1 deletion tools/verification/dot2/dot2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def format_automaton_definition(self):

def format_aut_init_header(self):
buff = []
buff.append("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
buff.append("static const struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
return buff

def __get_string_vector_per_line_content(self, buff):
Expand Down

0 comments on commit 9d2f606

Please sign in to comment.