Skip to contentSkip to conversation

SUNRPC: move macro for resvport to address header

RFC PATCH In review Kinglong Mee 1 participant 1 message Oct 16, 2024

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

RFC PATCH 2/5 SUNRPC: move macro for resvport to address header

---
 include/linux/sunrpc/addr.h     | 5 +++++
 include/linux/sunrpc/xprtsock.h | 5 -----
 2 files changed, 5 insertions(+), 5 deletions(-)
include/linux/sunrpc/addr.h +5 -0
index 07d454873b6d..f662798c5d83 100644
@@ -13,6 +13,11 @@
 #include <linux/in6.h>
 #include <net/ipv6.h>
 
+#define RPC_MIN_RESVPORT	(1U)
+#define RPC_MAX_RESVPORT	(65535U)
+#define RPC_DEF_MIN_RESVPORT	(665U)
+#define RPC_DEF_MAX_RESVPORT	(1023U)
+
 size_t		rpc_ntop(const struct sockaddr *, char *, const size_t);
 size_t		rpc_pton(struct net *, const char *, const size_t,
 			 struct sockaddr *, const size_t);
include/linux/sunrpc/xprtsock.h +0 -5
index 700a1e6c047c..b627065db7ab 100644
@@ -11,11 +11,6 @@
 int		init_socket_xprt(void);
 void		cleanup_socket_xprt(void);
 
-#define RPC_MIN_RESVPORT	(1U)
-#define RPC_MAX_RESVPORT	(65535U)
-#define RPC_DEF_MIN_RESVPORT	(665U)
-#define RPC_DEF_MAX_RESVPORT	(1023U)
-
 struct sock_xprt {
 	struct rpc_xprt		xprt;
 
Signature · 1 line
2.47.0