]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
verification/rvgen: Remove unused variable declaration from containers
authorGabriele Monaco <gmonaco@redhat.com>
Wed, 26 Nov 2025 10:42:39 +0000 (11:42 +0100)
committerGabriele Monaco <gmonaco@redhat.com>
Mon, 12 Jan 2026 06:43:51 +0000 (07:43 +0100)
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>
kernel/trace/rv/monitors/rtapp/rtapp.c
kernel/trace/rv/monitors/sched/sched.c
tools/verification/rvgen/rvgen/templates/container/main.c

index fd75fc927d65463303202e5ecb2e0b893d4d7b52..17f271231c99a9ae0b7f343a40851ede8230e536 100644 (file)
@@ -8,8 +8,6 @@
 
 #include "rtapp.h"
 
-struct rv_monitor rv_rtapp;
-
 struct rv_monitor rv_rtapp = {
        .name = "rtapp",
        .description = "Collection of monitors for detecting problems with real-time applications",
index d04db4b543f9600f0bc8fd351398f0c40161c3ba..dd9d96fc6e2120f059724cda80dd6cda9b0cfe1d 100644 (file)
@@ -8,8 +8,6 @@
 
 #include "sched.h"
 
-struct rv_monitor rv_sched;
-
 struct rv_monitor rv_sched = {
        .name = "sched",
        .description = "container for several scheduler monitor specifications.",
index 7d9b2f95c7e95d995be6b40890ebf8fde0f13904..5fc89b46f2792cd6a06e724b161bb895cb854db7 100644 (file)
@@ -8,8 +8,6 @@
 
 #include "%%MODEL_NAME%%.h"
 
-struct rv_monitor rv_%%MODEL_NAME%%;
-
 struct rv_monitor rv_%%MODEL_NAME%% = {
        .name = "%%MODEL_NAME%%",
        .description = "%%DESCRIPTION%%",