Commit b131a424 authored by Chuck Lever's avatar Chuck Lever
Browse files

lockd: Remove C macros that are no longer used



The conversion of all NLMv4 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 "NLMv4 Server procedures".

Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 515788fa
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -26,8 +26,6 @@
#include "nlm4xdr_gen.h"
#include "xdr4.h"

#define NLMDBG_FACILITY		NLMDBG_CLIENT

/*
 * Wrapper structures combine xdrgen types with legacy nlm_lock.
 * The xdrgen field must be first so the structure can be cast
@@ -1152,16 +1150,9 @@ static __be32 nlm4svc_proc_free_all(struct svc_rqst *rqstp)


/*
 * NLM Server procedures.
 * NLMv4 Server procedures.
 */

struct nlm_void			{ int dummy; };

#define	Ck	(1+XDR_QUADLEN(NLM_MAXCOOKIELEN))	/* cookie */
#define	No	(1+1024/4)				/* netobj */
#define	St	1					/* status */
#define	Rg	4					/* range (offset + length) */

static const struct svc_procedure nlm4svc_procedures[24] = {
	[NLMPROC4_NULL] = {
		.pc_func	= nlm4svc_proc_null,