]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a compile warning when !(CONFIG_NFS_V3 || CONFIG_NFS_V4)
authorTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 9 Sep 2014 05:21:00 +0000 (22:21 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:02 +0000 (12:47 -0700)
commit21d40f380ebca02a0813ffac0e1dd43912a9404e
treeb5925398b0cc8c610f5587b51cd68eaefaf10bd5
parenta55ea519e0971297075f77fcb314590b7e53b3f5
NFS: Fix a compile warning when !(CONFIG_NFS_V3 || CONFIG_NFS_V4)

gcc reports:

linux/fs/nfs/write.c: In function ‘nfs_page_find_head_request_locked.isra.17’:
linux/fs/nfs/write.c:121:64: warning: ‘cinfo.mds’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  list_for_each_entry_safe(freq, t, &cinfo.mds->list, wb_list) {
                                                                  ^
linux/fs/nfs/write.c:110:25: note: ‘cinfo.mds’ was declared here
  struct nfs_commit_info cinfo;

Reported-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Cc: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/write.c