]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nfs_common: fix build warning in grace.c
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Tue, 26 Sep 2017 07:14:05 +0000 (09:14 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 26 Sep 2017 13:25:19 +0000 (09:25 -0400)
This fix the following warning
fs/nfs_common/grace.c:66:1: warning: no previous prototype for function '__state_in_grace' [-Wmissing-prototypes]
by adding the missing static.

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfs_common/grace.c

index 420d3a0ab258fb2b312310e50081bbab30f2c2ae..519396967e79cf5a0b046f4b025bda11d5cbc99b 100644 (file)
@@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(locks_end_grace);
  * to answer ordinary lock requests, and when they should accept only
  * lock reclaims.
  */
-int
+static int
 __state_in_grace(struct net *net, bool open)
 {
        struct list_head *grace_list = net_generic(net, grace_net_id);