Commit 4359a011 authored by Zeng Heng's avatar Zeng Heng Committed by Steven Rostedt (Google)

rv/dot2K: add 'static' qualifier for local variable

Following Daniel's suggestion, fix similar warning
in template files, which would prevent new monitors
from such warning.

Link: https://lkml.kernel.org/r/20220824034357.2014202-3-zengheng4@huawei.com

Cc: <mingo@redhat.com>
Fixes:	24bce201 ("tools/rv: Add dot2k")
Suggested-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
Acked-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 01c44bf8
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* *
* The rv monitor reference is needed for the monitor declaration. * The rv monitor reference is needed for the monitor declaration.
*/ */
struct rv_monitor rv_MODEL_NAME; static struct rv_monitor rv_MODEL_NAME;
DECLARE_DA_MON_GLOBAL(MODEL_NAME, MIN_TYPE); DECLARE_DA_MON_GLOBAL(MODEL_NAME, MIN_TYPE);
/* /*
...@@ -63,7 +63,7 @@ TRACEPOINT_DETACH ...@@ -63,7 +63,7 @@ TRACEPOINT_DETACH
/* /*
* This is the monitor register section. * This is the monitor register section.
*/ */
struct rv_monitor rv_MODEL_NAME = { static struct rv_monitor rv_MODEL_NAME = {
.name = "MODEL_NAME", .name = "MODEL_NAME",
.description = "auto-generated MODEL_NAME", .description = "auto-generated MODEL_NAME",
.enable = enable_MODEL_NAME, .enable = enable_MODEL_NAME,
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* *
* The rv monitor reference is needed for the monitor declaration. * The rv monitor reference is needed for the monitor declaration.
*/ */
struct rv_monitor rv_MODEL_NAME; static struct rv_monitor rv_MODEL_NAME;
DECLARE_DA_MON_PER_CPU(MODEL_NAME, MIN_TYPE); DECLARE_DA_MON_PER_CPU(MODEL_NAME, MIN_TYPE);
/* /*
...@@ -63,7 +63,7 @@ TRACEPOINT_DETACH ...@@ -63,7 +63,7 @@ TRACEPOINT_DETACH
/* /*
* This is the monitor register section. * This is the monitor register section.
*/ */
struct rv_monitor rv_MODEL_NAME = { static struct rv_monitor rv_MODEL_NAME = {
.name = "MODEL_NAME", .name = "MODEL_NAME",
.description = "auto-generated MODEL_NAME", .description = "auto-generated MODEL_NAME",
.enable = enable_MODEL_NAME, .enable = enable_MODEL_NAME,
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* *
* The rv monitor reference is needed for the monitor declaration. * The rv monitor reference is needed for the monitor declaration.
*/ */
struct rv_monitor rv_MODEL_NAME; static struct rv_monitor rv_MODEL_NAME;
DECLARE_DA_MON_PER_TASK(MODEL_NAME, MIN_TYPE); DECLARE_DA_MON_PER_TASK(MODEL_NAME, MIN_TYPE);
/* /*
...@@ -63,7 +63,7 @@ TRACEPOINT_DETACH ...@@ -63,7 +63,7 @@ TRACEPOINT_DETACH
/* /*
* This is the monitor register section. * This is the monitor register section.
*/ */
struct rv_monitor rv_MODEL_NAME = { static struct rv_monitor rv_MODEL_NAME = {
.name = "MODEL_NAME", .name = "MODEL_NAME",
.description = "auto-generated MODEL_NAME", .description = "auto-generated MODEL_NAME",
.enable = enable_MODEL_NAME, .enable = enable_MODEL_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment