linux/drivers/infiniband/hw/qedr
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
..
Kconfig
main.c RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
Makefile RDMA/qedr: Add iWARP connection management qp related callbacks 2017-08-18 12:26:38 -04:00
qedr_hsi_rdma.h RDMA/qedr: Add support for read with invalidate, supported in iWARP 2017-08-18 12:25:42 -04:00
qedr_iw_cm.c RDMA/qedr: fix build error without ipv6 2017-09-22 11:39:28 -04:00
qedr_iw_cm.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
qedr_roce_cm.c RDMA/qedr: Rename the qedr_cm file as a preparation for iWARP support 2017-08-18 12:25:18 -04:00
qedr_roce_cm.h RDMA/qedr: Rename the qedr_cm file as a preparation for iWARP support 2017-08-18 12:25:18 -04:00
qedr.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
verbs.c RDMA/qedr: Missing error code in qedr_init_user_queue() 2017-08-28 20:34:40 -04:00
verbs.h RDMA/qedr: Add support for registering an iWARP device 2017-08-18 12:25:42 -04:00