linux/drivers/infiniband/hw
Arnd Bergmann bd491d2ad3 RDMA/qedr: fix build error without ipv6
When CONFIG_IPV6 disabled, we run into a link error:

drivers/infiniband/hw/qedr/qedr_iw_cm.o: In function `qedr_addr6_resolve.isra.3':
qedr_iw_cm.c:(.text+0x4e0): undefined reference to `ip6_route_output_flags'

The ipv6 handling code is obviously not needed here, so this
adds a compile-time check for the Kconfig symbol in all three
places in the code that decide between ipv4 and ipv6.

We don't have to worry about a link error wtih QEDR=y/IPV6=m, as
that configuration is already prohibited by CONFIG_INFINIBAND
depending on "m || IPV6 != m".

Fixes: e411e0587e ("RDMA/qedr: Add iWARP connection management functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-09-22 11:39:28 -04:00
..
bnxt_re Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-08-01 10:07:50 -07:00
cxgb3 IB/cxgb3: Fix error codes in iwch_alloc_mr() 2017-07-20 11:20:49 -04:00
cxgb4 iw_cxgb4: don't use WR keys/addrs for 0 byte reads 2017-07-20 11:20:50 -04:00
hfi1 IB/{rdmavt, qib, hfi1}: Remove gfp flags argument 2017-07-17 21:21:23 -04:00
hns IB/hns: checking for IS_ERR() instead of NULL 2017-08-04 15:09:56 -04:00
i40iw IB/i40iw: Fix error code in i40iw_create_cq() 2017-07-20 11:20:49 -04:00
mlx4 IB/mlx4: Fix CM REQ retries in paravirt mode 2017-07-20 11:20:50 -04:00
mlx5 RDMA/mlx5: Fix existence check for extended address vector 2017-08-04 14:24:05 -04:00
mthca IB/core: Define 'ib' and 'roce' rdma_ah_attr types 2017-05-01 14:32:43 -04:00
nes IB: Convert msleep below 20ms to usleep_range 2017-07-17 21:21:22 -04:00
ocrdma RDMA/ocrdma: Fix error codes in ocrdma_create_srq() 2017-07-20 11:20:49 -04:00
qedr RDMA/qedr: fix build error without ipv6 2017-09-22 11:39:28 -04:00
qib IB/{rdmavt, qib, hfi1}: Remove gfp flags argument 2017-07-17 21:21:23 -04:00
usnic IB/core: Rename struct ib_ah_attr to rdma_ah_attr 2017-05-01 14:32:43 -04:00
vmw_pvrdma IB/core: Define 'ib' and 'roce' rdma_ah_attr types 2017-05-01 14:32:43 -04:00
Makefile RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00