Skip to contentSkip to conversation

NFSv4: make nfs4_discover_trunking static

PATCH New Jiapeng Chong 1 participant 1 message Jan 13, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFSv4: make nfs4_discover_trunking static

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

Fixes the following sparse warning:

fs/nfs/nfs4proc.c:4062:5: warning: no previous prototype for ‘nfs4_discover_trunking’ [-Wmissing-prototypes].

---
 fs/nfs/nfs4proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfs/nfs4proc.c +1 -1
index e6b49d6318bc..644ba8a02960 100644
@@ -4059,7 +4059,7 @@ static int _nfs4_discover_trunking(struct nfs_server *server,
 	return status;
 }
 
-int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle)
+static int nfs4_discover_trunking(struct nfs_server *server, struct nfs_fh *fhandle)
 {
 	struct nfs4_exception exception = {
 		.interruptible = true,
Signature · 1 line
2.20.1.7.g153144c