Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3245622ybl; Mon, 19 Aug 2019 15:02:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLtEj3GrUwLhDDDLmVv7fTTCMsdbGzduZXBDcdsFH1Ikpzg5/14yrNlmGFUwTzGmq8/IQF X-Received: by 2002:a17:90b:f03:: with SMTP id br3mr23013463pjb.67.1566252136895; Mon, 19 Aug 2019 15:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566252136; cv=none; d=google.com; s=arc-20160816; b=qN8wDzNnlHBx2blIBvlHg+xawGQYKH5tE4G6ZIjHgyxFa3KsgdYewFbstOD8ifXawg NFf13Odxpwe6zdrbUuzDveSwWO1VWKazXWW2KemJ3U+0KDndAvczepUwc3qEC7J2fvi5 DWrahp0fcdtX3HUcPhWvvRwcNaxraW2TyhsZn4I29TQctwqzH3H5kJf0CnK65sM6rKa3 Dm3ycX6pF9ZTPRUP4rBpdAOvKyBN/zSqr9ZEvjryZxElNLDCt/dVtSqVUEuxviHLZeK9 tP65smY2SBxH+YkDvtiv+kIRBvem2MUKrK7qizCqFu4earVxL75qOPPYE7ZRaHWeQqTl n0vg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=gBtqq3IvZRaHl6JRTtznEC05xSuSPrBYeH5TY2P8Yio=; b=c4GmoZvHaPnYyrF7HgHadJCnskidPdtJjyyejJRo+FXdVkcXpvzx2Nyq24X4c5nzmK WltHMcoxoE8hYmAoSay2QpmyXWM6bane3TfXuBkRNrEZRKcf80HSj7WEhOAwFEvz5DI1 FKwVjvn6/7KodbGyzRi/UCBq9Bl4/PGLONvHo/xTEUkhIZ8Cf2kbishg8nD5JU4HxTdM JpZ1lTDT4kB8qnvc7gGnkVLrISG5Vmo+B86AQ6zfWMwrxsVGsAvyiTCJLw3nvPn7hi+2 lWZ+fUBuMVAh5MoGQDXOdVaJITDYiXorYrLt8pmDVdRxwOWnhTnd42WrbGXhgGdbcUsF sx3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=yCRR5Rgw; 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 i12si10802159pgs.126.2019.08.19.15.02.00; Mon, 19 Aug 2019 15:02:16 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=yCRR5Rgw; 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 S1728592AbfHSV7J (ORCPT + 99 others); Mon, 19 Aug 2019 17:59:09 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:41450 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728351AbfHSV7I (ORCPT ); Mon, 19 Aug 2019 17:59:08 -0400 Received: by mail-qt1-f193.google.com with SMTP id i4so3687805qtj.8 for ; Mon, 19 Aug 2019 14:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=gBtqq3IvZRaHl6JRTtznEC05xSuSPrBYeH5TY2P8Yio=; b=yCRR5Rgw6+zRfd7svu3uNd8G6A4hgfojo5FgGNk10rxwqf5SSa1m4ayDw/hC0I9taB qM8SPfVeeu6dh+paFD+01nvSo2/iR1jHsPo8RdkM6LCMyGgvmzAu3Kgr/lI/5/nHBZPF QT9cEsqwsG4tW8f6Qk1gwcaD5JtrxmIRFf4t9473UZfaKJMedVF6AMf+2XpwjJz9IGLF hdNx9es/jawsOhDWBAnHc7LHTKVOki+asV6nmPCbE8iY0SGdzQmSdJSDJYEdvjfNV/CA YGHRR0VkRrTjkPGfKYOuhvB+NXlxk340v56yh+toXcWYwyW8mqbzCofo5hT4Wf9qAKQa ANdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=gBtqq3IvZRaHl6JRTtznEC05xSuSPrBYeH5TY2P8Yio=; b=IfCbjiMwdUakxavUqNvLlXpVsB+GealYs5P3rUbBhBYbavFVtDtx89dXgVKG9161Pv f2CERSXVj88OzPc8VEd42jFnXc5T8LnpFInb7RKDDEfjEeYpw7g9MLCxH4zFW1iHm1yI XrQhw285DkbTHD3kVOFkEk51+Y4uiBRQ9getxgY8QdbFw1IfXGzkw30uIUZv9NLEr3CR xrOD6EPZ7nLniYD81FPSAa1/7QQkvhtDadhH18I3b7vBuqeRWx0FPRljI7r8Tb8jOGN3 ORowtfc3oCQxQCxkUW6TmFXyyMHhcASlwt9pkPZhbsrDv8Kmc7Wxr4MNepsbaRoXH08B z1OA== X-Gm-Message-State: APjAAAWBv/GEtLckZsLE/yTHYp92QH7U4x1Oxgnk6qgRvgtjQo8poVry oBB0QfB/IcsOAxjONr3wE96w6A== X-Received: by 2002:aed:3325:: with SMTP id u34mr22547902qtd.324.1566251947962; Mon, 19 Aug 2019 14:59:07 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id y204sm8317292qka.54.2019.08.19.14.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 14:59:07 -0700 (PDT) Date: Mon, 19 Aug 2019 14:59:00 -0700 From: Jakub Kicinski To: YueHaibing Cc: , , , , , Subject: Re: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET Message-ID: <20190819145900.5d9cc1f3@cakuba.netronome.com> In-Reply-To: <20190819120825.74460-1-yuehaibing@huawei.com> References: <20190819120825.74460-1-yuehaibing@huawei.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?