summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-04-20 21:01:32 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2023-04-21 16:36:21 -0400
commitc5733ae6dc895fa45032df0342c98dedc7051c2d (patch)
treeb104e09d75cf9c53e191b862d6bb46c3e44060b0 /fs/nfs
parent691d0b782066a6eeeecbfceb7910a8f6184e6105 (diff)
NFS: set varaiable nfs_netfs_debug_id storage-class-specifier to static
smatch reports fs/nfs/fscache.c:260:10: warning: symbol 'nfs_netfs_debug_id' was not declared. Should it be static? This variable is only used in its defining file, so it should be static Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/fscache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/fscache.c b/fs/nfs/fscache.c
index 95c2b3056e2b..8c35d88a84b1 100644
--- a/fs/nfs/fscache.c
+++ b/fs/nfs/fscache.c
@@ -257,7 +257,7 @@ int nfs_netfs_readahead(struct readahead_control *ractl)
return 0;
}
-atomic_t nfs_netfs_debug_id;
+static atomic_t nfs_netfs_debug_id;
static int nfs_netfs_init_request(struct netfs_io_request *rreq, struct file *file)
{
rreq->netfs_priv = get_nfs_open_context(nfs_file_open_context(file));