Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2628756ybl; Mon, 19 Aug 2019 05:15:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1jMNoVW4rj6MJRh0tl1s/WASRpUoQ/rmtmt5ln8Hqqz6MS8wh19pFh3aQH12GpZecPZyc X-Received: by 2002:a17:90a:bc06:: with SMTP id w6mr21110675pjr.130.1566216936711; Mon, 19 Aug 2019 05:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566216936; cv=none; d=google.com; s=arc-20160816; b=XLz3ymtTPLIH5VBex6SxYvSm/y0pgTXZgKDA4ier/XGHo7nIGDv6TMRaGU8xW3+HHN H+1nWgxza4Ugi/k1xjNqcO7GAjN08utmJiMiExOhr/MYhRXYAdo3ype3SaQ7/vcydyDC L4RfQymH2wIkHXFAiCwdHh8lZvgOT/MaUL/eq9wJjqWkEaCM/yG3pBlTqyTxpFh0WIoc cM2cFcyN+fcngV7uNJnyJoYtBEOfrA05QSCakquQcR9LGi8rnkJtKdA6jaPu8RPCnJgz jHWqcxAz7V9zJj5X03RFp24tpgbQtLLudUi3aLmbhqojCK7tpuYhtdf+vkcKV3Oo1Nnj VlhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=bcSd/VUmpVEbqgn38ZeEuiRls7bTTVnGu+ciVQyk59w=; b=N6Wu/f2B0OBlFTBYzV3T0gitVgb6EHvRuS0orSkZSDt/GCafTLCKHpCGSxILiTVufM HydxbF9Q1ejGq7YZeeYiEI7s1seeHkTmzAOUCquOXGsNm0WrcTfBMana8me3UmzYwTyl K5oKKsuzDQKVuyCk3keZ2AsN6kcZO29Zyehb2MgzJ2EXSw8qCAL2RxGF3jyuTH4fgf1j S7dXFhtaPSoEJOLX2VTLsTBcIPzpIQv8zk/Y26BI5Nn1pPoQG4D1rgyx8CHtPFWGMsp0 MqhbYFqmpXMpXs8htrBKJ6o7dxupHsjW+lxNNtYSJ7t5AfUcp9D/oe9MX+olInBeLp/O 5U/w== 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 q3si10018289pgs.576.2019.08.19.05.15.21; Mon, 19 Aug 2019 05:15:36 -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; 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 S1727546AbfHSMOZ (ORCPT + 99 others); Mon, 19 Aug 2019 08:14:25 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:35616 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727084AbfHSMOZ (ORCPT ); Mon, 19 Aug 2019 08:14:25 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5E2F4ED99DF63635B5A6; Mon, 19 Aug 2019 20:14:23 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Mon, 19 Aug 2019 20:14:14 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH net-next] netdevsim: Fix build error without CONFIG_INET Date: Mon, 19 Aug 2019 20:08:25 +0800 Message-ID: <20190819120825.74460-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] 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, 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 --- 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