diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2011-09-02 21:39:12 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-10-18 16:08:15 (GMT) |
commit | 45402c38eec740f52422aafc92937c6a4a8c8c0e (patch) | |
tree | c5ca2061deba7b2a1cc8b923ef781d8c3cdee011 /virt | |
parent | 7542274519b3ba87555410c66e8356ac1e3bc9b3 (diff) | |
download | linux-45402c38eec740f52422aafc92937c6a4a8c8c0e.tar.xz |
nfs/super.c: local functions should be static
commit ae50c0b5 "pnfs: client stats" added additional information to
the output of /proc/self/mountstats. The new functions introduced are
only used in this file and should be marked static.
If CONFIG_NFS_V4_1 is not defined, empty stub functions are used. If
CONFIG_NFS_V4 is not defined these stub functions are not used at all.
Adding static for the functions results in compile warnings:
fs/nfs/super.c:743: warning: 'show_sessions' defined but not used
fs/nfs/super.c:756: warning: 'show_pnfs' defined but not used
Fix this by adding a #ifdef CONFIG_NFS_V4 guard around the two
show_ functions.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions