All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] watchdog: set variables watchdog_soft,hardlockup_user_enabled storage-class-specifier to static
@ 2023-05-23 12:23 Tom Rix
  2023-05-23 12:40 ` Mukesh Ojha
  2023-05-23 14:12 ` Doug Anderson
  0 siblings, 2 replies; 5+ messages in thread
From: Tom Rix @ 2023-05-23 12:23 UTC (permalink / raw)
  To: akpm, dianders, pmladek, kernelfans, lecopzer.chen, ldufour
  Cc: linux-kernel, Tom Rix

smatch reports
kernel/watchdog.c:40:19: warning: symbol
  'watchdog_hardlockup_user_enabled' was not declared. Should it be static?
kernel/watchdog.c:41:19: warning: symbol
  'watchdog_softlockup_user_enabled' was not declared. Should it be static?

These variabled are only used in their defining file, so it should be static.

Signed-off-by: Tom Rix <trix@redhat.com>
---
 kernel/watchdog.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 877d8670f26e..237990e8d345 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -37,8 +37,8 @@ static DEFINE_MUTEX(watchdog_mutex);
 
 unsigned long __read_mostly watchdog_enabled;
 int __read_mostly watchdog_user_enabled = 1;
-int __read_mostly watchdog_hardlockup_user_enabled = WATCHDOG_HARDLOCKUP_DEFAULT;
-int __read_mostly watchdog_softlockup_user_enabled = 1;
+static int __read_mostly watchdog_hardlockup_user_enabled = WATCHDOG_HARDLOCKUP_DEFAULT;
+static int __read_mostly watchdog_softlockup_user_enabled = 1;
 int __read_mostly watchdog_thresh = 10;
 static int __read_mostly watchdog_hardlockup_available;
 
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-25 23:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23 12:23 [PATCH] watchdog: set variables watchdog_soft,hardlockup_user_enabled storage-class-specifier to static Tom Rix
2023-05-23 12:40 ` Mukesh Ojha
2023-05-23 14:12 ` Doug Anderson
2023-05-24 18:05   ` Doug Anderson
2023-05-25 23:31     ` Doug Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.