From: Chuck Lever Date: Tue, 12 May 2026 18:14:11 +0000 (-0400) Subject: lockd: Remove C macros that are no longer used X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c0d3a859ba6d66eb3b587fae1ad81ce518d9bd0;p=thirdparty%2Fkernel%2Flinux.git lockd: Remove C macros that are no longer used The conversion of all NLMv3 procedures to xdrgen-generated XDR functions is complete. The hand-rolled XDR size calculation macros (Ck, No, St, Rg) and the nlm_void structure definition served only the older implementations and are now unused. Also removes NLMDBG_FACILITY, which was set to the client debug flag in server-side code but never referenced, and corrects a comment to specify "NLMv3 Server procedures". Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever --- diff --git a/fs/lockd/svcproc.c b/fs/lockd/svcproc.c index ef1ae701b43b3..f62b0b39c5e98 100644 --- a/fs/lockd/svcproc.c +++ b/fs/lockd/svcproc.c @@ -24,8 +24,6 @@ #include "share.h" #include "nlm3xdr_gen.h" -#define NLMDBG_FACILITY NLMDBG_CLIENT - /* * Size of an NFSv2 file handle, in bytes, which is 32. * Defined locally to avoid including uapi/linux/nfs2.h. @@ -1188,16 +1186,9 @@ out: } /* - * NLM Server procedures. + * NLMv3 Server procedures. */ -struct nlm_void { int dummy; }; - -#define Ck (1+XDR_QUADLEN(NLM_MAXCOOKIELEN)) /* cookie */ -#define St 1 /* status */ -#define No (1+1024/4) /* Net Obj */ -#define Rg 2 /* range - offset + size */ - static const struct svc_procedure nlmsvc_procedures[24] = { [NLM_NULL] = { .pc_func = nlmsvc_proc_null,