[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20240604221726.2370316-4-paulmck@kernel.org>
Date: Tue, 4 Jun 2024 15:17:26 -0700
From: "Paul E. McKenney" <paulmck@...nel.org>
To: rcu@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
kernel-team@...a.com,
rostedt@...dmis.org,
Jeff Johnson <quic_jjohnson@...cinc.com>,
"Paul E . McKenney" <paulmck@...nel.org>
Subject: [PATCH torture 4/4] scftorture: Make torture_type static
From: Jeff Johnson <quic_jjohnson@...cinc.com>
Fix the 'make C=1' warning:
kernel/scftorture.c:71:6: warning: symbol 'torture_type' was not declared. Should it be static?
Signed-off-by: Jeff Johnson <quic_jjohnson@...cinc.com>
Signed-off-by: Paul E. McKenney <paulmck@...nel.org>
---
kernel/scftorture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/scftorture.c b/kernel/scftorture.c
index c20c6eb8389d2..44e83a6462647 100644
--- a/kernel/scftorture.c
+++ b/kernel/scftorture.c
@@ -68,7 +68,7 @@ torture_param(int, weight_many_wait, -1, "Testing weight for multi-CPU operation
torture_param(int, weight_all, -1, "Testing weight for all-CPU no-wait operations.");
torture_param(int, weight_all_wait, -1, "Testing weight for all-CPU operations.");
-char *torture_type = "";
+static char *torture_type = "";
#ifdef MODULE
# define SCFTORT_SHUTDOWN 0
--
2.40.1
Powered by blists - more mailing lists