From patchwork Fri Feb 17 14:40:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9579951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E01FA600F6 for ; Fri, 17 Feb 2017 14:41:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0C72286E7 for ; Fri, 17 Feb 2017 14:41:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5757286EC; Fri, 17 Feb 2017 14:41:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E5C8286E7 for ; Fri, 17 Feb 2017 14:41:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934014AbdBQOlc (ORCPT ); Fri, 17 Feb 2017 09:41:32 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:58567 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933993AbdBQOlc (ORCPT ); Fri, 17 Feb 2017 09:41:32 -0500 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MDPnp-1cbCxV115B-00GpGk; Fri, 17 Feb 2017 15:41:16 +0100 From: Arnd Bergmann To: Selvin Xavier , Doug Ledford , Sean Hefty Cc: Arnd Bergmann , Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna , Hal Rosenstock , Leon Romanovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] RDMA/bnxt_re: add DCB dependency Date: Fri, 17 Feb 2017 15:40:21 +0100 Message-Id: <20170217144110.2237820-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:ydCDccXx7hQgnSMIeAR4UC2A7yUJ022ZEyHytpUSvW2xUuihZpl LMIox0xE2aY6Mvn0DXKaSO5p8XUW/xW6l+SuvsTQKwA41auuMDcMQTUu0srkS7v4UImfUKQ 0JeFinTpj6G/kSA3ia1qz57KQkRd4TwOGGZZmg0DWebuwJxxD92sdXQ6WRiWHGv1zzbEEoz n1CA1ocw7mD0VnvppQ8LQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:i+hExW99ogY=:Leb3rBLTPZTyC5wKstkLIQ AA1QosKpF1cLMby/EV6/lfosnwV2IhODNb1ZTEdNsqeo4EbnOoWljW7R9PA/4XEY8yHJPr5ve HoDfRhrABZ6lUCqmGZU2ix3xQoKtdpvWCwQET7MxBof/SNjjte2icup313E2u2UUr1pk7YsYu fmBUcujacePxiaYL8K0Cfhe/C3nYEgDZHMnNBTNhR99fZ7rOS9KGEAwr4Qo4GKsh9OPddgRgn cfXWJYKQE6HW2VfTcN0QM+Kv3pKevjKM67DvqxWyicYMjjxT7hUZDTvFszbG3LceSe9P5NykB I1j2oUTmvAMzw/GVK+nQO3NAFwqSPoVY8UsoMs5kxzDf0/iF4KPlRFFzGatqJ0NFcGd4iuPYb 8D6L2T8p+JsXnXUtG5cZYk0Gfuo6SCTwdw5At8lFEemCtvvImrgj6j0HLSdkokmc1oH8B84vO fxTmdz0+M4zT/crvrWXxJFY3coNFKqki90vb2ypBvFydugzqUp8PG62xpNuej54WFP4aaw6e5 y40WxTbEJuuwQr9ZRMrgA8gPWDTcioNSHzX2f2152XQja4gXJ011IOv+a13Njufb8rYdb9bVy JaQVT36VjFM8bVrEM1Ts6Gg5QPDgmbQe4Y38NJQiw3A4yDDGTmntPJPmU5QaPv4EIEeR0pJ9o HXCnZ4sKbx9O7FnAaPfBy4s/j7Huyp6vp047qW6SVn+CDis+gvtNkrqmCFRtr2gb8QPU= Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/infiniband/hw/bnxt_re/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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---