Skip to content

Commit c5733ae

Browse files
Tom Rixamschuma-ntap
authored andcommitted
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>
1 parent 691d0b7 commit c5733ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/fscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ int nfs_netfs_readahead(struct readahead_control *ractl)
257257
return 0;
258258
}
259259

260-
atomic_t nfs_netfs_debug_id;
260+
static atomic_t nfs_netfs_debug_id;
261261
static int nfs_netfs_init_request(struct netfs_io_request *rreq, struct file *file)
262262
{
263263
rreq->netfs_priv = get_nfs_open_context(nfs_file_open_context(file));

0 commit comments

Comments
 (0)