Skip to content

Commit 3fee5b3

Browse files
committed
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>
1 parent 3d2bfee commit 3fee5b3

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

  • kernel/trace/rv/monitors
  • tools/verification/rvgen/rvgen/templates/container

kernel/trace/rv/monitors/rtapp/rtapp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include "rtapp.h"
1010

11-
struct rv_monitor rv_rtapp;
12-
1311
struct rv_monitor rv_rtapp = {
1412
.name = "rtapp",
1513
.description = "Collection of monitors for detecting problems with real-time applications",

kernel/trace/rv/monitors/sched/sched.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include "sched.h"
1010

11-
struct rv_monitor rv_sched;
12-
1311
struct rv_monitor rv_sched = {
1412
.name = "sched",
1513
.description = "container for several scheduler monitor specifications.",

tools/verification/rvgen/rvgen/templates/container/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include "%%MODEL_NAME%%.h"
1010

11-
struct rv_monitor rv_%%MODEL_NAME%%;
12-
1311
struct rv_monitor rv_%%MODEL_NAME%% = {
1412
.name = "%%MODEL_NAME%%",
1513
.description = "%%DESCRIPTION%%",

0 commit comments

Comments
 (0)