Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

verification/rvgen: Remove unused variable declaration from containers

The monitor container source files contained a declaration and a
definition for the rv_monitor variable. The former is superfluous and
can be removed.

Remove the variable declaration from the template as well as the
existing monitor containers.

Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20251126104241.291258-9-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>

-6
-2
kernel/trace/rv/monitors/rtapp/rtapp.c
··· 8 8 9 9 #include "rtapp.h" 10 10 11 - struct rv_monitor rv_rtapp; 12 - 13 11 struct rv_monitor rv_rtapp = { 14 12 .name = "rtapp", 15 13 .description = "Collection of monitors for detecting problems with real-time applications",
-2
kernel/trace/rv/monitors/sched/sched.c
··· 8 8 9 9 #include "sched.h" 10 10 11 - struct rv_monitor rv_sched; 12 - 13 11 struct rv_monitor rv_sched = { 14 12 .name = "sched", 15 13 .description = "container for several scheduler monitor specifications.",
-2
tools/verification/rvgen/rvgen/templates/container/main.c
··· 8 8 9 9 #include "%%MODEL_NAME%%.h" 10 10 11 - struct rv_monitor rv_%%MODEL_NAME%%; 12 - 13 11 struct rv_monitor rv_%%MODEL_NAME%% = { 14 12 .name = "%%MODEL_NAME%%", 15 13 .description = "%%DESCRIPTION%%",