NFSD: hide unused svcxdr_dupstr()
authorArnd Bergmann <arnd@arndb.de>
Mon, 22 Jan 2018 21:09:12 +0000 (22:09 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 8 Feb 2018 18:40:17 +0000 (13:40 -0500)
commit2285ae760de2cbe4b91a55c0a8033ec332fb8049
tree258bb6f9e3be69e9bea33af4c08094f7fddba0f3
parent39ca1bf624b6b82cc895b0217889eaaf572a7913
NFSD: hide unused svcxdr_dupstr()

There is now only one caller left for svcxdr_dupstr() and this is inside
of an #ifdef, so we can get a warning when the option is disabled:

fs/nfsd/nfs4xdr.c:241:1: error: 'svcxdr_dupstr' defined but not used [-Werror=unused-function]

This changes the remaining caller to use a nicer IS_ENABLED() check,
which lets the compiler drop the unused code silently.

Fixes: e40d99e6183e ("NFSD: Clean up symlink argument XDR decoders")
Suggested-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c