diff options
| author | Ka-Cheong Poon <[email protected]> | 2018-07-31 05:48:42 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2018-08-01 16:32:35 +0000 |
| commit | e65d4d96334e3ff4fe0064612a93a51c63de08de (patch) | |
| tree | 3bbc43d81b1e59665ceae7f412c70be52c29d89c /net/rds/send.c | |
| parent | rds: rds_ib_recv_alloc_cache() should call alloc_percpu_gfp() instead (diff) | |
| download | kernel-e65d4d96334e3ff4fe0064612a93a51c63de08de.tar.gz kernel-e65d4d96334e3ff4fe0064612a93a51c63de08de.zip | |
rds: Remove IPv6 dependency
This patch removes the IPv6 dependency from RDS.
Signed-off-by: Ka-Cheong Poon <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/rds/send.c')
| -rw-r--r-- | net/rds/send.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rds/send.c b/net/rds/send.c index 18e2b4d3931f..36a5dba56a43 100644 --- a/net/rds/send.c +++ b/net/rds/send.c @@ -1103,6 +1103,7 @@ int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len) dport = usin->sin_port; break; +#if IS_ENABLED(CONFIG_IPV6) case AF_INET6: { int addr_type; @@ -1142,6 +1143,7 @@ int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len) dport = sin6->sin6_port; break; } +#endif default: ret = -EINVAL; |
