From: Arnd Bergmann Date: Fri, 17 Feb 2017 14:40:21 +0000 (+0100) Subject: RDMA/bnxt_re: add DCB dependency X-Git-Tag: MMI-PSA29.97-13-9~6131^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e57f774db1fef3d983fd77db0f48f3f39875c65f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git RDMA/bnxt_re: add DCB dependency When CONFIG_DCB is disabled, we get a link error: drivers/infiniband/built-in.o: In function `bnxt_re_setup_qos': trace.c:(.text+0x155774): undefined reference to `dcb_ieee_getapp_mask' trace.c:(.text+0x155774): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `dcb_ieee_getapp_mask' trace.c:(.text+0x155794): undefined reference to `dcb_ieee_getapp_mask' trace.c:(.text+0x155794): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `dcb_ieee_getapp_mask' Like the other drivers that use this function, a Kconfig dependency is the correct fix. Signed-off-by: Arnd Bergmann Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/bnxt_re/Kconfig b/drivers/infiniband/hw/bnxt_re/Kconfig index cd0175e32584..19982a4a9bba 100644 --- a/drivers/infiniband/hw/bnxt_re/Kconfig +++ b/drivers/infiniband/hw/bnxt_re/Kconfig @@ -1,6 +1,6 @@ config INFINIBAND_BNXT_RE tristate "Broadcom Netxtreme HCA support" - depends on ETHERNET && NETDEVICES && PCI && INET + depends on ETHERNET && NETDEVICES && PCI && INET && DCB select NET_VENDOR_BROADCOM select BNXT ---help---