Skip to content

Commit 7ddfb81

Browse files
committed
Merge: Update userspace / kernel rv to latest upstream kernel
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3367 Update userspace / kernel rv to latest upstream kernel JIRA: https://issues.redhat.com/browse/RHEL-10080 Commit List: 73e053c rv: Remove redundant assignment to variable retval 2fd5ed8 rv/reactor: remove MODULE_LICENSE in non-modules ae3edea rv: remove redundant initialization of pointer ptr bfa87ac rv/monitors: Move monitor structure in rodata Signed-off-by: John Kacur <[email protected]> Approved-by: Phil Auld <[email protected]> Approved-by: John B. Wyatt IV <[email protected]> Signed-off-by: Jan Stancek <[email protected]>
2 parents 924be4b + 6b1a6da commit 7ddfb81

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

kernel/trace/rv/monitors/wip/wip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct automaton_wip {
2727
bool final_states[state_max_wip];
2828
};
2929

30-
static struct automaton_wip automaton_wip = {
30+
static const struct automaton_wip automaton_wip = {
3131
.state_names = {
3232
"preemptive",
3333
"non_preemptive"

kernel/trace/rv/monitors/wwnr/wwnr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ struct automaton_wwnr {
2727
bool final_states[state_max_wwnr];
2828
};
2929

30-
static struct automaton_wwnr automaton_wwnr = {
30+
static const struct automaton_wwnr automaton_wwnr = {
3131
.state_names = {
3232
"not_running",
3333
"running"

kernel/trace/rv/reactor_panic.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@ static void __exit unregister_react_panic(void)
3838
module_init(register_react_panic);
3939
module_exit(unregister_react_panic);
4040

41-
MODULE_LICENSE("GPL");
4241
MODULE_AUTHOR("Daniel Bristot de Oliveira");
4342
MODULE_DESCRIPTION("panic rv reactor: panic if an exception is found.");

kernel/trace/rv/reactor_printk.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,5 @@ static void __exit unregister_react_printk(void)
4141
module_init(register_react_printk);
4242
module_exit(unregister_react_printk);
4343

44-
MODULE_LICENSE("GPL");
4544
MODULE_AUTHOR("Daniel Bristot de Oliveira");
4645
MODULE_DESCRIPTION("printk rv reactor: printk if an exception is hit.");

kernel/trace/rv/rv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ static ssize_t monitor_enable_write_data(struct file *filp, const char __user *u
290290
if (retval)
291291
return retval;
292292

293-
retval = count;
294-
295293
mutex_lock(&rv_interface_lock);
296294

297295
if (val)
@@ -516,7 +514,7 @@ static ssize_t enabled_monitors_write(struct file *filp, const char __user *user
516514
struct rv_monitor_def *mdef;
517515
int retval = -EINVAL;
518516
bool enable = true;
519-
char *ptr = buff;
517+
char *ptr;
520518
int len;
521519

522520
if (count < 1 || count > MAX_RV_MONITOR_NAME_SIZE + 1)

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("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def))
114+
buff.append("static const 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)