Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1489419ybj; Fri, 20 Sep 2019 11:19:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzx4rXjoLommyek/mRTcMurD3f3PHRTQcmNJsnLny1PNa+FagdYfYMqk+ZKm8pOsSDlS9Fm X-Received: by 2002:a05:6402:356:: with SMTP id r22mr20829233edw.254.1569003540013; Fri, 20 Sep 2019 11:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569003540; cv=none; d=google.com; s=arc-20160816; b=ZSZ6zU3GsdX9mC0yOPKVHNa+10g9rj8n2PZjCpNXemSD24EbJqP5Rg4i66EYOu08s1 oaYOs91mlEZ8ElVUAvB6e9D9mZbvN0tBcq9c7arG9lPXU4OyaBqqjNbOIM4kxBlQH+yQ XCdhGnZDJPxLjgKQ2lZYt7g3NIc34wKoHr7f26F53ean7MjoXDe1Es8o2gt3pKNQzNi1 HJ+ZxpaQod/hgcBFXYiLXHdq0XF2G+FtP2wCufKGXj4krFwQ39Rebzzo3ekIDlYicPnp nUlYeCCXmp0C18E5dYEsrFLnLRIVKfr8w+PfJihnVDYM0MdgOZo9s5mo6qJIiXgaOpN2 wPXw== 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:mime-version :message-id:date:subject:cc:to:from; bh=jnQtjOe6Q3Iax9MdvywCFEUItpPykK4LuDsgx4V4+54=; b=CQD4aUjoTCHXAI2zDBL8HGG/piZFnQ+wph4OjvCZd9Vhn8M2Fxv8l8FAcwg1LmbuIQ Nm50qlnts/y2qd20GHMArwYENeuKHg/og55X/+Hx+Nx8eJpsXexIHRWndd/F+Xn9051G Rx4IDg+6g4lYQyrm3l6OMjR1le9z5eoQEtsmfElR91J5nQT3TBqXZ1m+tR7MIvITFCxV LOxT8e+FRqSY/22PI6rT+kIsJU7tX+bcQ02Fgwt5BUpGrWzbs0xGeS6ulFRXCLAG10FA 0gW0ij/fa6LPFE2z2FH3Ukj/8gJxVbtkpccIF4aV4tpbC+FQgmmBhjOAhqHNJWhO4t3j XTDQ== 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 w8si1764043edq.391.2019.09.20.11.18.36; Fri, 20 Sep 2019 11:19:00 -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 S2395293AbfITI1Q (ORCPT + 99 others); Fri, 20 Sep 2019 04:27:16 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2691 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388411AbfITI1Q (ORCPT ); Fri, 20 Sep 2019 04:27:16 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 10334526B13114035257; Fri, 20 Sep 2019 16:27:14 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Fri, 20 Sep 2019 16:27:03 +0800 From: Mao Wenan To: , , , CC: , , , Mao Wenan Subject: [PATCH net] net: ena: Add dependency for ENA_ETHERNET Date: Fri, 20 Sep 2019 16:44:05 +0800 Message-ID: <20190920084405.140750-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/amazon/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" -- 2.7.4