Skip to contentSkip to conversation

NFSD: remove unused structs 'nfsd3_voidargs'

PATCH Applied [email protected] 3 participants 3 messages May 31, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFSD: remove unused structs 'nfsd3_voidargs'

From: "Dr. David Alan Gilbert" <[email protected]>

'nfsd3_voidargs' in nfs[23]acl.c is unused since
commit 788f7183fba8 ("NFSD: Add common helpers to decode void args and encode void results").

Remove them.

---
 fs/nfsd/nfs2acl.c | 2 --
 fs/nfsd/nfs3acl.c | 2 --
 2 files changed, 4 deletions(-)
fs/nfsd/nfs2acl.c +0 -2
index 12b2b9bc07bf..4e3be7201b1c 100644
@@ -308,8 +308,6 @@ static void nfsaclsvc_release_access(struct svc_rqst *rqstp)
 	fh_put(&resp->fh);
 }
 
-struct nfsd3_voidargs { int dummy; };
-
 #define ST 1		/* status*/
 #define AT 21		/* attributes */
 #define pAT (1+AT)	/* post attributes - conditional */
fs/nfsd/nfs3acl.c +0 -2
index 73adca47d373..5e34e98db969 100644
@@ -221,8 +221,6 @@ static void nfs3svc_release_getacl(struct svc_rqst *rqstp)
 	posix_acl_release(resp->acl_default);
 }
 
-struct nfsd3_voidargs { int dummy; };
-
 #define ST 1		/* status*/
 #define AT 21		/* attributes */
 #define pAT (1+AT)	/* post attributes - conditional */
Signature · 1 line
2.45.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 40 lines · On Fri, 2024-05-31 at 01:08 +0100, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'nfsd3_voidargs' in nfs[23]acl.c is unused since
commit 788f7183fba8 ("NFSD: Add common helpers to decode void args and
encode void results").

Remove them.

---
 fs/nfsd/nfs2acl.c | 2 --
 fs/nfsd/nfs3acl.c | 2 --

 2 files changed, 4 deletions(-)
fs/nfsd/nfs2acl.c +0 -0
index 12b2b9bc07bf..4e3be7201b1c 100644
@@ -308,8 +308,6 @@ static void nfsaclsvc_release_access(struct
 svc_rqst *rqstp)
  	fh_put(&resp->fh);
  }

fs/nfsd/nfs2acl.c +0 -2
-struct nfsd3_voidargs { int dummy; };
-

 #define ST 1 /* status*/
 #define AT 21 /* attributes */
 #define pAT (1+AT) /* post attributes - conditional */

fs/nfsd/nfs3acl.c +0 -0
index 73adca47d373..5e34e98db969 100644
@@ -221,8 +221,6 @@ static void nfs3svc_release_getacl(struct
 svc_rqst *rqstp)
  	posix_acl_release(resp->acl_default);
  }

fs/nfsd/nfs3acl.c +0 -2
-struct nfsd3_voidargs { int dummy; };
-
Quoted 3 lines

 #define ST 1 /* status*/
 #define AT 21 /* attributes */
 #define pAT (1+AT) /* post attributes - conditional */

Applied
#2 lore raw
In reply to [email protected]
Quoted 43 lines · On Thu, May 30, 2024 at 08:08:38PM -0400, [email protected] wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

'nfsd3_voidargs' in nfs[23]acl.c is unused since
commit 788f7183fba8 ("NFSD: Add common helpers to decode void args and encode void results").

Remove them.

---
 fs/nfsd/nfs2acl.c | 2 --
 fs/nfsd/nfs3acl.c | 2 --
 2 files changed, 4 deletions(-)
fs/nfsd/nfs2acl.c +0 -2
index 12b2b9bc07bf..4e3be7201b1c 100644
@@ -308,8 +308,6 @@ static void nfsaclsvc_release_access(struct svc_rqst *rqstp)
 	fh_put(&resp->fh);
 }
 
-struct nfsd3_voidargs { int dummy; };
-
 #define ST 1		/* status*/
 #define AT 21		/* attributes */
 #define pAT (1+AT)	/* post attributes - conditional */
fs/nfsd/nfs3acl.c +0 -2
index 73adca47d373..5e34e98db969 100644
@@ -221,8 +221,6 @@ static void nfs3svc_release_getacl(struct svc_rqst *rqstp)
 	posix_acl_release(resp->acl_default);
 }
 
-struct nfsd3_voidargs { int dummy; };
-
 #define ST 1		/* status*/
 #define AT 21		/* attributes */
 #define pAT (1+AT)	/* post attributes - conditional */
Signature · 1 line
2.45.1

Applied to nfsd-next (for v6.11). Thank you!

Signature · 1 line
Chuck Lever