Skip to content

Commit

Permalink
NFS: Fix a warning in fs/nfs/idmap.c
Browse files Browse the repository at this point in the history
Commit 45a52a0 (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>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 14, 2011
1 parent c5cb09b commit e0dca7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/nfs_xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0dca7a

Please sign in to comment.