Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4110279ybl; Tue, 20 Aug 2019 07:10:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqweyBzm8m2438qNEX1eOzguwaImhfNl2PR9PiVap83BCkgv6MnwYQs5hAvPhBW3VpjHfb2A X-Received: by 2002:a17:90b:f03:: with SMTP id br3mr170830pjb.67.1566310224099; Tue, 20 Aug 2019 07:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566310224; cv=none; d=google.com; s=arc-20160816; b=wYeHWAzcfN3xE6a/q9dqgECbde6OsGJaYpLv3Hdy+cGOJ/A1+hhLG1maK9E4bm6wUU qnKLZZXh7EioC3n1q/X1cModA6JxHviTX3HOS2dW4a42ibp8yK++oOtKIhzH2xN/RfOO zNZs+qFkYINM8RLrYg98rDNJ02NEDBlbSpXcGBoMMaYnJ/V5zGLt8dljJjczSFbeZHnw p3PtfN2n4Tb7n6UURvhs+FNTsW9aYcPotDXDcS2az5t0yv1c5KuC7qkk2xmVJSHePBd+ HJfg9RcFfHMIRL/WoEFVIahSPFogiiGWZNpDFlMcDzTxmnmYsY/ju+5QEcAf/xRO7icd tw1Q== 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=O7KzrfohIuSvPtd1UzngE8AJHpkANJ/fKm2MTfi1JuU=; b=Kms1Rkk+RyyUXEqeUZC2Psthaa96cieOXG4CX+FHYc3Y5/IsYVvDtLwcMaA8Gywsbg z0f+cOWp9h6KXN9xXzUFL019Jo66uCKT22Fv1WQjPxQHanDeBLmDtZ+EaKNet/I89cUb JfJL8ipfCoufnRSE6PCrOYWMZy5UKmYwLordMbJS7yMI3ekJya/g1Y4hA3mNrcIWAcCj jbEv43NAjS5Vqtu/C/P13tUFq4QlMQJFPI+xx7TsVZmcKIK5gh0/FA3aJ70gHRvAtBG2 wB9GBt+SxO/c2BiHNcKFKPmD+DD/i491Q4hWbOP/bUJc3QCZ5ua7474UwdINJkkh1sjx S7bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=krT8hvBs; 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 r17si12130055pgr.277.2019.08.20.07.10.05; Tue, 20 Aug 2019 07:10:24 -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=krT8hvBs; 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 S1730501AbfHTOIq (ORCPT + 99 others); Tue, 20 Aug 2019 10:08:46 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45727 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729968AbfHTOIp (ORCPT ); Tue, 20 Aug 2019 10:08:45 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 02F9C22281; Tue, 20 Aug 2019 10:08:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 20 Aug 2019 10:08:45 -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=O7Kzrf ohIuSvPtd1UzngE8AJHpkANJ/fKm2MTfi1JuU=; b=krT8hvBs1ZEc9ptZTRpdZ1 2yhlowAcD4n+UQEeOcVg+CTNdLDi5yoj1449hHWtZUvII3GgNsh82ubS8eQXy/PO XCWc0zZ7oxeb+eSWSZVMipNJquR6qkSi1UgbPT7eyTUqjqMuifZnWCH7OfB95Caj g/5PqSPmI5SdsRxjgqAUnfSrOskw0tOVeCmNBsYwXWRimU9uBd7QqwOS3YK47OwL J490bSwEIDVpFlYPtxwhtpNARIvLg9JDWj7FsRNrKnvvmIF68qFgf9fWOg/Vg454 X00fjLI8XHYA0yH64vDq9GOYjZSFnpkO7813IXz4ZYG4EphkmjWPYhbpBI6LoCow == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeguddgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecukfhppeejle drudejjedrvddurddukedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiughoshgthhes ihguohhstghhrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (unknown [79.177.21.180]) by mail.messagingengine.com (Postfix) with ESMTPA id BD30D38008A; Tue, 20 Aug 2019 10:08:42 -0400 (EDT) Date: Tue, 20 Aug 2019 17:08:04 +0300 From: Ido Schimmel To: Jakub Kicinski Cc: YueHaibing , davem@davemloft.net, idosch@mellanox.com, jiri@mellanox.com, mcroce@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET Message-ID: <20190820140804.GA31968@splinter> References: <20190819120825.74460-1-yuehaibing@huawei.com> <20190819145900.5d9cc1f3@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190819145900.5d9cc1f3@cakuba.netronome.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 02:59:00PM -0700, Jakub Kicinski wrote: > On Mon, 19 Aug 2019 20:08:25 +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 > > Hmm.. I'd rather the test module did not have hard dependencies on > marginally important config options. We have done a pretty good job > so far limiting the requirements though separating the code out at > compilation object level. The more tests depend on netdevsim and the > more bots we have running tests against randconfig - the more important > this is. > > This missing reference here is for calculating a checksum over a > constant header.. could we perhaps just hard code the checksum? Sure. I was AFK today, will send a patch later today when I get home. Thanks