nfsd: Make nfsd_reset_boot_verifier_locked static
authorYueHaibing <yuehaibing@huawei.com>
Mon, 23 Sep 2019 05:58:59 +0000 (13:58 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 23 Sep 2019 16:20:10 +0000 (12:20 -0400)
Fix sparse warning:

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

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c

index 3caaf5675259fa6cc64758cc5cd8cca7d1306353..fdf7ed4bd5dd22e6014c8bf6d15e8326808fe87d 100644 (file)
@@ -361,7 +361,7 @@ void nfsd_copy_boot_verifier(__be32 verf[2], struct nfsd_net *nn)
        done_seqretry(&nn->boot_lock, seq);
 }
 
-void nfsd_reset_boot_verifier_locked(struct nfsd_net *nn)
+static void nfsd_reset_boot_verifier_locked(struct nfsd_net *nn)
 {
        ktime_get_real_ts64(&nn->nfssvc_boot);
 }