All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] NFSD: make symbol 'nfsd_notifier_lock' static
@ 2021-11-30 11:34 Wei Yongjun
  2021-11-30 20:19 ` Chuck Lever III
  0 siblings, 1 reply; 6+ messages in thread
From: Wei Yongjun @ 2021-11-30 11:34 UTC (permalink / raw)
  To: weiyongjun1, NeilBrown, J. Bruce Fields, Chuck Lever
  Cc: linux-nfs, kernel-janitors, Hulk Robot

The sparse tool complains as follows:

fs/nfsd/nfssvc.c:437:1: warning:
 symbol 'nfsd_notifier_lock' was not declared. Should it be static?

This symbol is not used outside of nfssvc.c, so marks it static.

Fixes: 6ac25fbcbde9 ("NFSD: simplify locking for network notifier.")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 fs/nfsd/nfssvc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index 070525fbc1ad..14c1ef6f8cc7 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -434,7 +434,7 @@ static void nfsd_shutdown_net(struct net *net)
 	nfsd_shutdown_generic();
 }
 
-DEFINE_SPINLOCK(nfsd_notifier_lock);
+static DEFINE_SPINLOCK(nfsd_notifier_lock);
 static int nfsd_inetaddr_event(struct notifier_block *this, unsigned long event,
 	void *ptr)
 {


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

end of thread, other threads:[~2021-12-03 15:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-30 11:34 [PATCH -next] NFSD: make symbol 'nfsd_notifier_lock' static Wei Yongjun
2021-11-30 20:19 ` Chuck Lever III
2021-12-03 11:25   ` Dan Carpenter
2021-12-03 15:17     ` Chuck Lever III
2021-12-03 15:19       ` Bruce Fields
2021-12-03 15:28         ` Chuck Lever III

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.