Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4394519ybl; Tue, 20 Aug 2019 11:12:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIu2SC7OuNz/1VB3yB//Zk0nkhhXkbfqoSUrbvoOylwxRSsAaiZlSacoUrv549j2u6K9xC X-Received: by 2002:a63:29c7:: with SMTP id p190mr25284002pgp.124.1566324738339; Tue, 20 Aug 2019 11:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566324738; cv=none; d=google.com; s=arc-20160816; b=i4U0TqEadkOhyXLODFlYvYvq2XRlnsPhqSiAg0k3odbtOqsjjH1Q9UsCpwb35kO3PL etVnFK/4+sQ7rJ6g5HJtZvxgJXugQls8exNmubuLHMwyEUlj38tqpS+ygmcGquiCqHzZ 2iETH3O1FEaWbeRTpizrHcMH501cZUTaretEUX99ULd4yTy4OutdZidU4DOTPjXvHn0Z HWzW70azT29Qc3PlUgIvD/6aSPkFNixTmLW0b0vtMIZUM/e28M7HFpv7bcAO+b5nimPC /peUuxUPu+SG9EzGnv841PXclRdi2jWau8q1Lgptq8Xmf+VXWdYaf7Xe645gjb3eliC5 RUeg== 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=wIvSUFSxBtKrLx7QW6izXj5arwDQX+RuLbQJMChRUnQ=; b=HGbhfH3MIoJ6eE6dBQfqrR+PeOnB0/lL1zQS+h7Msbsl5PKsl/yKt4qWOXwohGYdfS kOHB7yGR3mkHHbfHKZ6Ds5VBu8bw+PwyJx17GTbgsm8B48lltVN8hdEFcePnOJRFc5ty WQVuLuu5zQ2MqvT+5q40VG9i+o2XdlKTpgT95mqxqdiL5XmXzpS0bvH36xlMDmIkNEde bMxxS8oEaSaiiSOfd+mgCFR3UB4Cx5+sRmCzmE471WeiLgpsghYtbf0zo12tjMtFfE7w jX83DY8Ea1I/u7hCACwzXT05PrJR0kKRKuZf/4CajSxiiGaXD9YwAKKXkEmgAczzhFwc LdQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=m0wbJYW+; 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 h187si12555146pgc.6.2019.08.20.11.12.02; Tue, 20 Aug 2019 11:12:18 -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=m0wbJYW+; 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 S1730399AbfHTSLN (ORCPT + 99 others); Tue, 20 Aug 2019 14:11:13 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60835 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727358AbfHTSLN (ORCPT ); Tue, 20 Aug 2019 14:11:13 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DD21D21443; Tue, 20 Aug 2019 14:11:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 20 Aug 2019 14:11:11 -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=wIvSUF SxBtKrLx7QW6izXj5arwDQX+RuLbQJMChRUnQ=; b=m0wbJYW+y0sMPQSHCjrZwg SQfdBzqc4G9vlAj4sIhdJ8yeReIPGWHJGROL4WecWDVhUdIz//euBTr6BQxvEMSH OD/PPC+QMZ3Jcqnzk6kJLDK3/Ti5fle09KBGF1+rgi1ykEkSBiXLF3AC/UOXXFXt Bgj7P4smZm0bxUgeHmTD57qSVfEeHDzDqJ3VjtulJdKLAxtEVweEY8S8YMSFxuj/ EGszuc6EDo+A9+Q+ZVeXZ6h+uqeP1+mmuWJQgj5TW4tgrtLIB45nnxaibjTMgI8g EtJ1G4txAeI+Juxa0Qm28DRPbF+aCWl33LYOy0q1ugeEyhEOg8deX8+BZnkld8lQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudeguddguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjfgesth dtredttdervdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehi ughoshgthhdrohhrgheqnecukfhppeejjedrudefkedrvdegledrvddtleenucfrrghrrg hmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrghenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [77.138.249.209]) by mail.messagingengine.com (Postfix) with ESMTPA id D3E82380089; Tue, 20 Aug 2019 14:11:09 -0400 (EDT) Date: Tue, 20 Aug 2019 21:10:55 +0300 From: Ido Schimmel To: YueHaibing Cc: davem@davemloft.net, idosch@mellanox.com, jiri@mellanox.com, mcroce@redhat.com, jakub.kicinski@netronome.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2 net-next] netdevsim: Fix build error without CONFIG_INET Message-ID: <20190820181055.GA6054@splinter> References: <20190819120825.74460-1-yuehaibing@huawei.com> <20190820141446.71604-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190820141446.71604-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 Tue, Aug 20, 2019 at 10:14:46PM +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' > > Use ip_fast_csum instead of ip_send_check to avoid > dependencies on CONFIG_INET. > > Reported-by: Hulk Robot > Fixes: da58f90f11f5 ("netdevsim: Add devlink-trap support") > Signed-off-by: YueHaibing Reviewed-by: Ido Schimmel Tested-by: Ido Schimmel Thanks for fixing this in my stead!