Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7764884ybl; Thu, 16 Jan 2020 05:20:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzvzoouPYCSfmUnBd0HS+xakc13RepzMOPPh1QepvyADevuBL65Js5jwKNIvHD9lU49cNJx X-Received: by 2002:a9d:6b91:: with SMTP id b17mr1881116otq.321.1579180801088; Thu, 16 Jan 2020 05:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579180801; cv=none; d=google.com; s=arc-20160816; b=ZI8cgqt1SDB1CCAApmKswWK+n2W7AkS6qWpAsY4tEsCnpIIkQbj2tMOHBXXkkw4Fw7 yg2a7N4a7RyRDCFItePML5i8OmxR1LKZNS7rW78137bZimnOCgoA/SrdQ3bCmpkEFjv7 /DNf5kp6ArwerqVO2scg3PlE5oD57/LCvWMbiyL7gFLg1rLLBCebhPzQbldBnKbYM+Vd MJmAkniOU/O+jj8JpnLjBLvpHhKA6xmpVI+jvFz1G2kIi0sHvsS5VZbFue8NGzt2tXEE ZcLip+5+9SMptS00Y/nIBf2TkmMifVecnNnSVZUAYzBxOKRVjgAid4GC+CbgEvxNaTku H1NQ== 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=DZc45U8MDdA536VumclKBgcrsgyUQrpSnqg/9EqAoVY=; b=lLbYL6HiLGFslzAh7NJhwQFlDTR7/HT9xZxqotZouD7gNzlTxK71J0F3st5LbQSbe7 T9sTT0XQvyk+wIsa1+tjEX8cM+/aPI9MfN2puAe6HXJ26tT8fvHF0vwDmzAvOJATfr2N IUz6no1c/5YXnETWnomM4rpwf+b14WFwpM7VxCQvf88iEVyrPZITjPBXdDV9QKUhhgu8 c8aueG2FrqtOrsoaHqxOxe4rAe49jfJeHxTM4vcz8+8bVGPACrkSFVZFIcK5tkhmoonv VyXZlgqX9oMP7YV5IogwCDC1QVmNBooI4GnbAQ70lnnGnjXOniJ8HNgyoegWTHXXE8N0 vo3A== 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 c19si13366048otp.3.2020.01.16.05.19.48; Thu, 16 Jan 2020 05:20:01 -0800 (PST) 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 S1726872AbgAPNSu (ORCPT + 99 others); Thu, 16 Jan 2020 08:18:50 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:53656 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726329AbgAPNSu (ORCPT ); Thu, 16 Jan 2020 08:18:50 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EA1593EB626CDFB28B09; Thu, 16 Jan 2020 21:18:46 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Thu, 16 Jan 2020 21:18:39 +0800 From: Hongbo Yao To: CC: , , , , Subject: [PATCH v2 -next] drivers/net: netdevsim depends on INET Date: Thu, 16 Jan 2020 21:14:04 +0800 Message-ID: <20200116131404.169423-1-yaohongbo@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_INET is not set and CONFIG_NETDEVSIM=y. Building drivers/net/netdevsim/fib.o will get the following error: drivers/net/netdevsim/fib.o: In function `nsim_fib4_rt_hw_flags_set': fib.c:(.text+0x12b): undefined reference to `fib_alias_hw_flags_set' drivers/net/netdevsim/fib.o: In function `nsim_fib4_rt_destroy': fib.c:(.text+0xb11): undefined reference to `free_fib_info' Correct the Kconfig for netdevsim. Reported-by: Hulk Robot Fixes: 48bb9eb47b270("netdevsim: fib: Add dummy implementation for FIB offload") Signed-off-by: Hongbo Yao --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 77ee9afad038..25a8f9387d5a 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -549,6 +549,7 @@ source "drivers/net/hyperv/Kconfig" config NETDEVSIM tristate "Simulated networking device" depends on DEBUG_FS + depends on INET depends on IPV6 || IPV6=n select NET_DEVLINK help -- 2.20.1