Skip to contentSkip to conversation

locked: remove nlmsvc_decode_norep/grantedres

PATCH In review Alex Shi 2 participants 2 messages Jan 21, 2020

Subsystems (2)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 locked: remove nlmsvc_decode_norep/grantedres

These 2 macros are never used after first git commit Linux-2.6.12-rc2. So guess better to remove them.

Cc "J. Bruce Fields" <[email protected]>
Cc Chuck Lever <[email protected]>
Cc Trond Myklebust <[email protected]>
Cc Anna Schumaker <[email protected]>
---
 fs/lockd/svcproc.c | 2 --
 1 file changed, 2 deletions(-)
fs/lockd/svcproc.c +0 -2
index d0bb7a6bf005..8b7565c71863 100644
@@ -534,12 +534,10 @@ static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp)
  */
 
 #define nlmsvc_encode_norep	nlmsvc_encode_void
-#define nlmsvc_decode_norep	nlmsvc_decode_void
 #define nlmsvc_decode_testres	nlmsvc_decode_void
 #define nlmsvc_decode_lockres	nlmsvc_decode_void
 #define nlmsvc_decode_unlockres	nlmsvc_decode_void
 #define nlmsvc_decode_cancelres	nlmsvc_decode_void
-#define nlmsvc_decode_grantedres	nlmsvc_decode_void
 
 #define nlmsvc_proc_none	nlmsvc_proc_null
 #define nlmsvc_proc_test_res	nlmsvc_proc_null
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 2 lines · Alex Shi

These 2 macros are never used after first git commit Linux-2.6.12-rc2. So guess better to remove them.

I'm not fond of these macros. If we're going to doing anything to them, I'd rather just get rid of the entirely (including the PROC macro) and write out the initialization of nlmsvc_procedures. Yes, it'd probably add another 80 or so lines to the file, but it'd be readable without referring to the macro definitions. And it would be less confusing to people who grep for the users of the various proc/encode/decode methods and can't find them.

--b.

Quoted 31 lines
Cc "J. Bruce Fields" <[email protected]>
Cc Chuck Lever <[email protected]>
Cc Trond Myklebust <[email protected]>
Cc Anna Schumaker <[email protected]>
---
 fs/lockd/svcproc.c | 2 --
 1 file changed, 2 deletions(-)
fs/lockd/svcproc.c +0 -2
index d0bb7a6bf005..8b7565c71863 100644
@@ -534,12 +534,10 @@ static __be32 nlmsvc_proc_cancel_msg(struct svc_rqst *rqstp)
  */
 
 #define nlmsvc_encode_norep	nlmsvc_encode_void
-#define nlmsvc_decode_norep	nlmsvc_decode_void
 #define nlmsvc_decode_testres	nlmsvc_decode_void
 #define nlmsvc_decode_lockres	nlmsvc_decode_void
 #define nlmsvc_decode_unlockres	nlmsvc_decode_void
 #define nlmsvc_decode_cancelres	nlmsvc_decode_void
-#define nlmsvc_decode_grantedres	nlmsvc_decode_void
 
 #define nlmsvc_proc_none	nlmsvc_proc_null
 #define nlmsvc_proc_test_res	nlmsvc_proc_null
Signature · 1 line
1.8.3.1