Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2892605ybl; Mon, 19 Aug 2019 08:59:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbc+sABpR6YJ7VgLPQHhbqE6fkwQYoiYKxpNTghLKxK8jOyOATrL5VXHVywxQeNW06NXzk X-Received: by 2002:a63:1f1b:: with SMTP id f27mr20358494pgf.233.1566230368295; Mon, 19 Aug 2019 08:59:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566230368; cv=none; d=google.com; s=arc-20160816; b=BABXaw8wXbWlGUe2Ar25jO3WOevt0Nm3itr0rda4y4gIsXXNYs1SHBn/X/OFYUIIgS C1QhqWh0UI6rBJ3wZ+4MFTecFpJoYYrQERJEp3maTzy6wgANb1HqJ6VA0xddQyk2XLFn dH7kIRJwUPo/o/pwse+CwgE4p0uDDRYWVOumw8YwgkdG3ys4tv6UUN4oQzfAoWiC8NOW GgEPKcKTFbKKb7A1nQzEPzZYs94cEIPg6DI+9RKoBvn/4HHnSLt+QIatvY0o0h85NwY+ IdN+mGBGeMzTa6x8E7+66uE6eLhBHRKhTqDitaFVFsmdPuTKQBeuGxpsvMcOQsKpIN2G tvnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gpIBDUfEZDWpISBZBKSzckdrBhI7tyEF/XdiR6xtils=; b=hvIrWyX/sHX0rjQkPnO2qPwTFopy0FOTcvpM1oB8LRPdOutoKohBOJdNqK3oIpd2Ac YTEit990CumFAQgNIgFhhVoKCgVjgT/yvgEhWUqRyyk8Fn26UF/K8OkLRsfYsWcIR9nF HjCxpXwMkrr6tU7b8PCSuq1qqVQqo6wXc80Jp6fA78essK9ETalEc05FtzG/+qOJvgVO amhFLg3e/Xdss93i7XI8QCITWoncqN9QrMqcS0f7dahb10paw1Iss2zFMyN9Pvh/YLpK 3j94NW6R6GLmndtty6iqm8xqeeuB0S0b4wCjsA+yzu9bv3zb8AsGZcAOUe1U2xRl86Es UCHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Dq+rxnHm; 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 n63si10039173pga.511.2019.08.19.08.59.13; Mon, 19 Aug 2019 08:59:28 -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; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Dq+rxnHm; 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 S1727892AbfHSP6I (ORCPT + 99 others); Mon, 19 Aug 2019 11:58:08 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:40209 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726390AbfHSP6I (ORCPT ); Mon, 19 Aug 2019 11:58:08 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id EF40721F82; Mon, 19 Aug 2019 11:58:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 19 Aug 2019 11:58:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=gpIBDU fEZDWpISBZBKSzckdrBhI7tyEF/XdiR6xtils=; b=Dq+rxnHmDSnDxbOUUxbdOI h+DMsDLbSLEG6axCOcFuszM9/qfiF46JqMt0jSysoMi0sbEp1hpNmBKnWwbW3/Qj os4eZWceQFMejicWLvZKjwoum5c+SFDOsCVY6Ajc8yLmnKzoVKMhzYezxEvjMsRo 1jOtSiiFfYBuAy1ovQv5jENF838z2O+hJTo58edFJKfHpqQCAni0UiyXOrVrT+Uj /ENsgmjmKRWcjTKKAEzCSYbDs0Nj7gncaZy6iBu3AcGEXh8eaNMkSgxKdxsar3/f NNelLraLR4SfSf0llYc2gnUPScMSgpq5wp0fAWNI916fT5deaw2Ktp6E+OkSb6Bg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudefledgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd ertddtredvnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihgu ohhstghhrdhorhhgqeenucfkphepudelfedrgeejrdduieehrddvhedunecurfgrrhgrmh epmhgrihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhgnecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: from localhost (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 69D5F380083; Mon, 19 Aug 2019 11:58:05 -0400 (EDT) Date: Mon, 19 Aug 2019 18:58:03 +0300 From: Ido Schimmel To: YueHaibing Cc: davem@davemloft.net, idosch@mellanox.com, jiri@mellanox.com, mcroce@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jakub.kicinski@netronome.com Subject: Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET Message-ID: <20190819155803.GA16864@splinter> References: <20190819120825.74460-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190819120825.74460-1-yuehaibing@huawei.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 19, 2019 at 08:08:25PM +0800, YueHaibing wrote: > If CONFIG_INET is not set, building fails: > > drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': > dev.c:(.text+0x67b): undefined reference to `ip_send_check' > > Add CONFIG_INET Kconfig dependency to fix this. > > Reported-by: Hulk Robot > Fixes: da58f90f11f5 ("netdevsim: Add devlink-trap support") > Signed-off-by: YueHaibing Reviewed-by: Ido Schimmel Thanks for the patch. > --- > drivers/net/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index 48e209e..7bb786e 100644 > --- a/drivers/net/Kconfig > +++ b/drivers/net/Kconfig > @@ -505,7 +505,7 @@ source "drivers/net/hyperv/Kconfig" > > config NETDEVSIM > tristate "Simulated networking device" > - depends on DEBUG_FS > + depends on INET && DEBUG_FS > select NET_DEVLINK > help > This driver is a developer testing tool and software model that can > -- > 2.7.4 > >