diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-01-22 22:09:12 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-02-08 13:40:17 -0500 |
commit | 2285ae760de2cbe4b91a55c0a8033ec332fb8049 (patch) | |
tree | 258bb6f9e3be69e9bea33af4c08094f7fddba0f3 /net | |
parent | 39ca1bf624b6b82cc895b0217889eaaf572a7913 (diff) | |
download | op-kernel-dev-2285ae760de2cbe4b91a55c0a8033ec332fb8049.zip op-kernel-dev-2285ae760de2cbe4b91a55c0a8033ec332fb8049.tar.gz |
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions