]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSD: Fix sparse warning in nfssvc.c
authorChuck Lever <chuck.lever@oracle.com>
Fri, 18 Dec 2020 17:28:23 +0000 (12:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:50 +0000 (14:52 +0200)
commitbca0057f686bff5999896e5780dfcbce4b9fbc45
tree55e556a7c886e7ee3406e6701119cbf08afad860
parent131676b8240fdded867167b3501b4e53897cc9f4
NFSD: Fix sparse warning in nfssvc.c

[ Upstream commit d6c9e4368cc6a61bf25c9c72437ced509c854563 ]

fs/nfsd/nfssvc.c:36:6: warning: symbol 'inter_copy_offload_enable' was not declared. Should it be static?

The parameter was added by commit ce0887ac96d3 ("NFSD add nfs4 inter
ssc to nfsd4_copy"). Relocate it into the source file that uses it,
and make it static. This approach is similar to the
nfs4_disable_idmapping, cltrack_prog, and cltrack_legacy_disable
module parameters.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs4proc.c
fs/nfsd/nfssvc.c
fs/nfsd/xdr4.h