Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2722994ybj; Mon, 23 Sep 2019 08:23:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqZycsQxuomY9hGDtKae05npQIYYmaFhkn7eZmTAlOkvgo6heYZVBTEbxF1P3cMSeFT2xv X-Received: by 2002:a50:9438:: with SMTP id p53mr604062eda.291.1569252186625; Mon, 23 Sep 2019 08:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569252186; cv=none; d=google.com; s=arc-20160816; b=Nh7RYd0vMfVXrmW/Rsn2Zct8St9in4G+YH3D/kxaSrzhE/aIQ3fT0qhqL75MspbaUx CyjUk20ch+XH3nfznqAjU++MAxOlKPuHmreHmVNmNHgsnAfECZdmj2ESypbx6WZcAY6l t657LnbAHtp1jsQvfWyG0dG+TTvDqbIzrrmlIWhQj3zvsyLR+8tGzsk0ZYRf8rxR5pHn UeRf/3Ce6sOr52Jx3sLOb/QqTapqw5Ggfy31JKkBQ1nDoO8NyXnEMFUZxTNrLLp7yjBC TyDGLLm7Oec08XJnbxa7amBxrW0Ut9NZQ4hh7PivYYyAZR+q8E+hOMtEGw2xmSX6rdlm SEsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vaZfmXlHw3TOkvlQ/6ck2+4ADA2t4ajlybe11L4U31I=; b=ejdxdFFjGSCSJiN+3X+aFX1oq4Rje02ZzDOOo5019S9vEsKvGMkzYrADtdd7EOqPr+ e7VYsb098Lv4LO1L6uaCq/BFlal0d2vVJR/UST+uJRZqIxuFwU/eysTHKPleKRQR0smH Dxd1CEuS4RBRYJ2H5+eMP1U2d9JyU5gLOGrsk3E8smF5SHTC2oHM367dD+EH6YH1X25+ r/eEbjb/CAm0WUNv0vLSiR+h1+bNuSbXNayS6i43QPJUha23C3J+6y7F/PVXz8wr2mL1 bzO4NkFYeUpSv8PJB0lXmKvmbT2MYS/ldhKruLR6g1yz6zD1fDE8e2yz8pQLRqiUEPNv L75A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si5354623ejc.134.2019.09.23.08.22.43; Mon, 23 Sep 2019 08:23:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727480AbfIVFJN (ORCPT + 99 others); Sun, 22 Sep 2019 01:09:13 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:49778 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726528AbfIVFJM (ORCPT ); Sun, 22 Sep 2019 01:09:12 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6BD0CFC1606C4BAC71CC; Sun, 22 Sep 2019 13:09:09 +0800 (CST) Received: from [127.0.0.1] (10.177.96.96) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Sun, 22 Sep 2019 13:09:06 +0800 Subject: Re: [PATCH net] net: ena: Add dependency for ENA_ETHERNET To: Jakub Kicinski CC: , , , , , , , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= References: <20190920084405.140750-1-maowenan@huawei.com> <20190921200741.1c3289e8@cakuba.netronome.com> From: maowenan Message-ID: <256c3d2c-e900-8182-48e4-fb1cfcb53a74@huawei.com> Date: Sun, 22 Sep 2019 13:08:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: <20190921200741.1c3289e8@cakuba.netronome.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.96.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/22 11:07, Jakub Kicinski wrote: > On Fri, 20 Sep 2019 16:44:05 +0800, Mao Wenan wrote: >> If CONFIG_ENA_ETHERNET=y and CONFIG_DIMLIB=n, >> below erros can be found: >> drivers/net/ethernet/amazon/ena/ena_netdev.o: In function `ena_dim_work': >> ena_netdev.c:(.text+0x21cc): undefined reference to `net_dim_get_rx_moderation' >> ena_netdev.c:(.text+0x21cc): relocation truncated to >> fit: R_AARCH64_CALL26 against undefined symbol `net_dim_get_rx_moderation' >> drivers/net/ethernet/amazon/ena/ena_netdev.o: In function `ena_io_poll': >> ena_netdev.c:(.text+0x7bd4): undefined reference to `net_dim' >> ena_netdev.c:(.text+0x7bd4): relocation truncated to fit: >> R_AARCH64_CALL26 against undefined symbol `net_dim' >> >> After commit 282faf61a053 ("net: ena: switch to dim algorithm for rx adaptive >> interrupt moderation"), it introduces dim algorithm, which configured by CONFIG_DIMLIB. >> >> Fixes: 282faf61a053 ("net: ena: switch to dim algorithm for rx adaptive interrupt moderation") >> Signed-off-by: Mao Wenan > > Thank you Mao, shortly after you posted your patch Uwe proposed to make > DIMLIB a hidden symbol: > > https://lore.kernel.org/netdev/a85be675-ce56-f7ba-29e9-b749073aab6c@kleine-koenig.org/T/#t > > That patch will likely be applied soon, could you please rework your > patch to use the "select" keyword instead of "depends". That's what > other users do. Ok, I will send v2. > >> diff --git a/drivers/net/ethernet/amazon/Kconfig b/drivers/net/ethernet/amazon/Kconfig >> index 69ca99d..fe46df4 100644 >> --- a/drivers/net/ethernet/amazon/Kconfig >> +++ b/drivers/net/ethernet/amazon/Kconfig >> @@ -18,7 +18,7 @@ if NET_VENDOR_AMAZON >> >> config ENA_ETHERNET >> tristate "Elastic Network Adapter (ENA) support" >> - depends on PCI_MSI && !CPU_BIG_ENDIAN >> + depends on PCI_MSI && !CPU_BIG_ENDIAN && DIMLIB >> ---help--- >> This driver supports Elastic Network Adapter (ENA)" >> > > > . >