From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751616AbdG0Jxh (ORCPT ); Thu, 27 Jul 2017 05:53:37 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:38331 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbdG0Jxf (ORCPT ); Thu, 27 Jul 2017 05:53:35 -0400 MIME-Version: 1.0 In-Reply-To: References: <20170725153046.44726-1-arnd@arndb.de> <20170725153046.44726-2-arnd@arndb.de> From: Arnd Bergmann Date: Thu, 27 Jul 2017 11:53:33 +0200 X-Google-Sender-Auth: EXxkcF5mJceZbQeLqoUQmXXnZZc Message-ID: Subject: Re: [PATCH net-next 2/2] bnxt_en: define sriov_lock unconditionally To: Sathya Perla Cc: Michael Chan , "David S. Miller" , Somnath Kotur , Netdev , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2017 at 11:00 AM, Sathya Perla wrote: > On Thu, Jul 27, 2017 at 1:18 PM, Arnd Bergmann wrote: > [...] >> >> On today's linux-next: >> >> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.o: In function `bnxt_dl_register': >> bnxt_vfr.c:(.text+0x1440): undefined reference to `devlink_alloc' >> bnxt_vfr.c:(.text+0x14c0): undefined reference to `devlink_register' >> bnxt_vfr.c:(.text+0x14e0): undefined reference to `devlink_free' >> drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.o: In function `bnxt_dl_unregister': >> bnxt_vfr.c:(.text+0x1534): undefined reference to `devlink_unregister' >> bnxt_vfr.c:(.text+0x153c): undefined reference to `devlink_free' >> >> I think you are just missing a "depends on MAY_USE_DEVLINK" >> in INFINIBAND_BNXT_RE, which uses 'select BNXT'. >> >> This is a tricky corner case for Kconfig, where the MAY_USE_DEVLINK >> dependency is silently ignored for BNXT as long as MAY_USE_DEVLINK >> is not "=n". > > Can you pls share your .config so that I can reproduce this issue and > ensure that my fix really works... The configuration I used happened to be for arm64, I've pasted it to https://pastebin.com/dl/rSJ6jCQM now. You should be able to reproduce it on x86 as well, with anything using CONFIG_NET_DEVLINK=m and INFINIBAND_BNXT_RE=y. Arnd