From: Trond Myklebust <Trond.Myklebust@netapp.com>
Date: Mon, 14 Mar 2011 22:20:01 +0000 (-0400)
Subject: NFS: Fix a warning in fs/nfs/idmap.c
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0dca7a05df4e23a8f5b07742e99e2a6f7d67db1;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git

NFS: Fix a warning in fs/nfs/idmap.c

Commit 45a52a02072b2a7e265f024cfdb00127e08dd9f2 (NFS move nfs_client
initialization into nfs_get_client) introduces a new warning in
fs/nfs/idmap.c:

	‘struct rpc_timeout’ declared inside parameter list

Fix it by adding a forward declaration for the struct rpc_timeout
in include/linux/nfs_xdr.h

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---

diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h
index 3440f5ab0f54..2c2c67d2eb42 100644
--- a/include/linux/nfs_xdr.h
+++ b/include/linux/nfs_xdr.h
@@ -1051,6 +1051,7 @@ struct nfs_write_data {
 
 struct nfs_access_entry;
 struct nfs_client;
+struct rpc_timeout;
 
 /*
  * RPC procedure vector for NFSv2/NFSv3 demuxing