Skip to content

Commit 4c2eaf0

Browse files
chuckleverTrond Myklebust
authored andcommitted
SUNRPC: remove old portmapper
net/sunrpc/pmap_clnt.c has been replaced by net/sunrpc/rpcb_clnt.c. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent df8b172 commit 4c2eaf0

5 files changed

Lines changed: 1 addition & 395 deletions

File tree

‎include/linux/sunrpc/clnt.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ struct rpc_clnt *rpc_clone_client(struct rpc_clnt *);
122122
int rpc_shutdown_client(struct rpc_clnt *);
123123
int rpc_destroy_client(struct rpc_clnt *);
124124
void rpc_release_client(struct rpc_clnt *);
125-
void rpc_getport(struct rpc_task *);
126-
int rpc_register(u32, u32, int, unsigned short, int *);
127125
int rpcb_register(u32, u32, int, unsigned short, int *);
128126
void rpcb_getport(struct rpc_task *);
129127

@@ -147,7 +145,6 @@ char * rpc_peeraddr2str(struct rpc_clnt *, enum rpc_display_format_t);
147145
/*
148146
* Helper function for NFSroot support
149147
*/
150-
int rpc_getport_external(struct sockaddr_in *, __u32, __u32, int);
151148
int rpcb_getport_external(struct sockaddr_in *, __u32, __u32, int);
152149

153150
#endif /* __KERNEL__ */

‎include/linux/sunrpc/debug.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#define RPCDBG_DEBUG 0x0004
1818
#define RPCDBG_NFS 0x0008
1919
#define RPCDBG_AUTH 0x0010
20-
#define RPCDBG_PMAP 0x0020
2120
#define RPCDBG_BIND 0x0020
2221
#define RPCDBG_SCHED 0x0040
2322
#define RPCDBG_TRANS 0x0080

‎include/linux/sunrpc/msg_prot.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ enum rpc_auth_stat {
7878
RPCSEC_GSS_CTXPROBLEM = 14
7979
};
8080

81-
#define RPC_PMAP_PROGRAM 100000
82-
#define RPC_PMAP_VERSION 2
83-
#define RPC_PMAP_PORT 111
84-
8581
#define RPC_MAXNETNAMELEN 256
8682

8783
/*

‎net/sunrpc/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ obj-$(CONFIG_SUNRPC_GSS) += auth_gss/
99
sunrpc-y := clnt.o xprt.o socklib.o xprtsock.o sched.o \
1010
auth.o auth_null.o auth_unix.o \
1111
svc.o svcsock.o svcauth.o svcauth_unix.o \
12-
pmap_clnt.o rpcb_clnt.o timer.o xdr.o \
12+
rpcb_clnt.o timer.o xdr.o \
1313
sunrpc_syms.o cache.o rpc_pipe.o
1414
sunrpc-$(CONFIG_PROC_FS) += stats.o
1515
sunrpc-$(CONFIG_SYSCTL) += sysctl.o

0 commit comments

Comments
 (0)