Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3398303pxb; Mon, 25 Jan 2021 15:19:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyG2jxdTo0O3agPaS75rBSfMCuLlCIfdcWxH2wpR51MwnnPDFq1nMQc7fWielJqEY5Sk+Fd X-Received: by 2002:a17:906:3b0b:: with SMTP id g11mr1681805ejf.169.1611616795237; Mon, 25 Jan 2021 15:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611616795; cv=none; d=google.com; s=arc-20160816; b=UB/MrymoQnBvn8U6WhNl0r+0wQqTJU05XMMJbi5+0usKRh0H00Oa3YF/hqQFXOTGtj feIZKC2qd5noIowMxi8XuQzmLz6EY4DpmkDpusrM9884uH6C1YdLfGZqOXBse82PKCsF biV73SYiZ1QGwWnYNFl6vg6P8jwRY4BleHnJbP9vzGKG3yu/PfxC5sxiguLIV1wv4+OP xmsgiVHG6GR+UHoo1iM3o6v1hRFwVX+hfvM4MDjdiAmnj2aVV3hHMmrNAfNQuMjrM5Oc cql6gjxMo7NkeqAY1SU6ShySqpGMglqgD/35zEmUGUlO+ee7H85NrmH04RTAA3caiP++ II7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=iXq4jdB7UEgroRe4zKSNMFcBItuQhSVkop/2HLSPejI=; b=bVHOcCCsz802G96agTQbh7dhxzKxFWrpzqrZiyYu0EbS0FvSmpGTltAJ/Dvemwd+J/ dGF4/q+lubg9P9Eqk1qKwgnMKm/uIihfaXwJ1CabNEkXJybKUR8VV8qAy+9K03B5wzlC NdXBfM1gCUJfyv3ITHEnXyJYOmmreoh8asQNvXqDYIqJBAuGLWny9jPhVRVLa+GMBjAU Ee2SSGX4SX6Wr+RsoEb2of2Z+waXrSxJAGz36A8Bb6JM8YiRsIE9evBqRgHXCY38AP5V AiD+y+3FVxrvwIAnaCo2jbFmgfg2Kw36HgLnX5GAGomJnhSsmMtUbwZkS9ltUmEVINZ9 n7TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vxHo4zwh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si6499461ejx.5.2021.01.25.15.19.31; Mon, 25 Jan 2021 15:19:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vxHo4zwh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731500AbhAYXSh (ORCPT + 99 others); Mon, 25 Jan 2021 18:18:37 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:45009 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732868AbhAYXS2 (ORCPT ); Mon, 25 Jan 2021 18:18:28 -0500 Received: from localhost.localdomain (softbank126026094251.bbtec.net [126.26.94.251]) (authenticated) by conuserg-07.nifty.com with ESMTP id 10PNHDrG029059; Tue, 26 Jan 2021 08:17:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com 10PNHDrG029059 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1611616637; bh=iXq4jdB7UEgroRe4zKSNMFcBItuQhSVkop/2HLSPejI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vxHo4zwhczdB519VerKT+NnywXOHW/lPe7HSLefNfu7T4NiBe77sKVNPfT/TZf7K+ DbaOxzyYw9poE/bjeLeMMBupB2fKFT5SvSGsgKfAAzULfEiGhSg26yn3aSROCQLsJA I8z0xvPo7kERLuIU/JCJgx7QnYo4VljSH82Hd6mC4YrnjRdyz19sYolM5NsVree6/R /3uJCnEeSduxXjm/lEzmqlUSooM09F4Pz1e6pVbWg4+P35C/OTsKrAEfUtgZ2nGNV9 xtZk4qqHPZ2MQ2Us7E4gyTAfyex47TVm4DLK0+H5t1j848hNd3PwDJoIZq+L/sj93O aT/zHjNu7t4Yg== X-Nifty-SrcIP: [126.26.94.251] From: Masahiro Yamada To: netdev@vger.kernel.org Cc: Masahiro Yamada , David Ahern , "David S. Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: [PATCH 4/4] net: l3mdev: use obj-$(CONFIG_NET_L3_MASTER_DEV) form in net/Makefile Date: Tue, 26 Jan 2021 08:16:58 +0900 Message-Id: <20210125231659.106201-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210125231659.106201-1-masahiroy@kernel.org> References: <20210125231659.106201-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_NET_L3_MASTER_DEV is a bool option. Change the ifeq conditional to the standard obj-$(CONFIG_NET_L3_MASTER_DEV) form. Use obj-y in net/l3mdev/Makefile because Kbuild visits this Makefile only when CONFIG_NET_L3_MASTER_DEV=y. Signed-off-by: Masahiro Yamada --- net/Makefile | 4 +--- net/l3mdev/Makefile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/net/Makefile b/net/Makefile index a18547c97cbb..9ca9572188fe 100644 --- a/net/Makefile +++ b/net/Makefile @@ -73,9 +73,7 @@ obj-$(CONFIG_MPLS) += mpls/ obj-$(CONFIG_NET_NSH) += nsh/ obj-$(CONFIG_HSR) += hsr/ obj-$(CONFIG_NET_SWITCHDEV) += switchdev/ -ifneq ($(CONFIG_NET_L3_MASTER_DEV),) -obj-y += l3mdev/ -endif +obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev/ obj-$(CONFIG_QRTR) += qrtr/ obj-$(CONFIG_NET_NCSI) += ncsi/ obj-$(CONFIG_XDP_SOCKETS) += xdp/ diff --git a/net/l3mdev/Makefile b/net/l3mdev/Makefile index 59755a9e2f9b..9e7da0acc58c 100644 --- a/net/l3mdev/Makefile +++ b/net/l3mdev/Makefile @@ -3,4 +3,4 @@ # Makefile for the L3 device API # -obj-$(CONFIG_NET_L3_MASTER_DEV) += l3mdev.o +obj-y += l3mdev.o -- 2.27.0