summaryrefslogtreecommitdiff
path: root/fs/nfsd/xdr4.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-08 20:03:15 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 15:58:01 -0400
commit6c9600a71d9c00a49e6a915b228f3f0b542a6067 (patch)
tree78a6c0070a2399dfb4bed74892082d40b5a0d003 /fs/nfsd/xdr4.h
parent408b3d46ae06e1d219f31cbe629789a5e5c862aa (diff)
nfsd4: properly type op_set_currentstateid callbacks
Given the args union in struct nfsd4_op a name, and pass it to the op_set_currentstateid callbacks instead of using unsafe function pointer casts. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r--fs/nfsd/xdr4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h
index eb7f9239304f..b625f4aa1061 100644
--- a/fs/nfsd/xdr4.h
+++ b/fs/nfsd/xdr4.h
@@ -539,7 +539,7 @@ struct nfsd4_seek {
struct nfsd4_op {
int opnum;
__be32 status;
- union {
+ union nfsd4_op_u {
struct nfsd4_access access;
struct nfsd4_close close;
struct nfsd4_commit commit;