aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <[email protected]>2012-04-30 18:39:20 -0400
committerTrond Myklebust <[email protected]>2012-04-30 18:39:20 -0400
commit4f97615d19c370d1d907ef37f8bcd9c3672851ca (patch)
tree2940916463b7d665f396170623333a91caf1f007 /include/linux
parent292f3eeef00a20fa0ef4feec62792ad0065760a0 (diff)
NFS: Fix a compile issue when CONFIG_NFS_V4_1 is undefined
struct nfs_direct_req can't compile when struct pnfs_ds_commit_info is undefined. Reported-by: Bryan Schumaker <[email protected]> Signed-off-by: Trond Myklebust <[email protected]> Cc: Fred Isaman <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_xdr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index c940d46eb423..6deb8f097c42 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1176,6 +1176,11 @@ struct nfs41_free_stateid_res {
struct nfs4_sequence_res seq_res;
};
+#else
+
+struct pnfs_ds_commit_info {
+};
+
#endif /* CONFIG_NFS_V4_1 */
struct nfs_page;