aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/addr.c')
-rw-r--r--net/sunrpc/addr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/addr.c b/net/sunrpc/addr.c
index 67a655ee82a9..ee77742e0ed6 100644
--- a/net/sunrpc/addr.c
+++ b/net/sunrpc/addr.c
@@ -21,7 +21,7 @@
21#include <linux/slab.h> 21#include <linux/slab.h>
22#include <linux/export.h> 22#include <linux/export.h>
23 23
24#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 24#if IS_ENABLED(CONFIG_IPV6)
25 25
26static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, 26static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap,
27 char *buf, const int buflen) 27 char *buf, const int buflen)
@@ -91,7 +91,7 @@ static size_t rpc_ntop6(const struct sockaddr *sap,
91 return len; 91 return len;
92} 92}
93 93
94#else /* !(defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)) */ 94#else /* !IS_ENABLED(CONFIG_IPV6) */
95 95
96static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap, 96static size_t rpc_ntop6_noscopeid(const struct sockaddr *sap,
97 char *buf, const int buflen) 97 char *buf, const int buflen)
@@ -105,7 +105,7 @@ static size_t rpc_ntop6(const struct sockaddr *sap,
105 return 0; 105 return 0;
106} 106}
107 107
108#endif /* !(defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)) */ 108#endif /* !IS_ENABLED(CONFIG_IPV6) */
109 109
110static int rpc_ntop4(const struct sockaddr *sap, 110static int rpc_ntop4(const struct sockaddr *sap,
111 char *buf, const size_t buflen) 111 char *buf, const size_t buflen)
@@ -155,7 +155,7 @@ static size_t rpc_pton4(const char *buf, const size_t buflen,
155 return sizeof(struct sockaddr_in); 155 return sizeof(struct sockaddr_in);
156} 156}
157 157
158#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 158#if IS_ENABLED(CONFIG_IPV6)
159static int rpc_parse_scope_id(const char *buf, const size_t buflen, 159static int rpc_parse_scope_id(const char *buf, const size_t buflen,
160 const char *delim, struct sockaddr_in6 *sin6) 160 const char *delim, struct sockaddr_in6 *sin6)
161{ 161{