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 19:40:17 +0100 |
commit | 2285ae760de2cbe4b91a55c0a8033ec332fb8049 (patch) | |
tree | 258bb6f9e3be69e9bea33af4c08094f7fddba0f3 /net/sunrpc | |
parent | nfsd: store stat times in fill_pre_wcc() instead of inode times (diff) | |
download | linux-2285ae760de2cbe4b91a55c0a8033ec332fb8049.tar.xz linux-2285ae760de2cbe4b91a55c0a8033ec332fb8049.zip |
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/sunrpc')
0 files changed, 0 insertions, 0 deletions