From 3a3908c8b09d5ec19d543836d4f38d240ae27fe8 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Mon, 8 Sep 2014 22:21:00 -0700 Subject: [PATCH] NFS: Fix a compile warning when !(CONFIG_NFS_V3 || CONFIG_NFS_V4) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Cc: Weston Andros Adamson Signed-off-by: Trond Myklebust --- Reading git-format-patch failed