From patchwork Sat Aug 10 15:52:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 171020 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp696084ily; Sat, 10 Aug 2019 08:54:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhWcfLgFuoaE8NxbmAgXaAYgu+uu6D4C/DmIhLjZxDhghKlUwG542g8NhGIVqr9tasxWHz X-Received: by 2002:a17:90a:b30e:: with SMTP id d14mr4493797pjr.26.1565452465041; Sat, 10 Aug 2019 08:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565452465; cv=none; d=google.com; s=arc-20160816; b=BcWMbfZiKyNvXA7szDjAM0Ny6BFlpNoCm8xE8N1LMs0PliO8x6bvbGOlywrT5UVxud 6TUWcB8AHGKpaHW9NmJepqVXC/2CWNVZgBfGkwejBLLEo9FBqc+4tbhN1zuPyF90H6Rh QlWooNmV6bwP5nIrliA9w4vHIhqK3h/dzGaCdcHI/oNvNcNS4Hm2OzETcVaoby8hZqWO k+FbSoCdfuSFb7ZrsyTqaQklw4V/HNXsSKcFE/3rHoZ2jxSU1UhbaLOKN/KB2g0J651C WS/1VW4OYjWFt2t+V/mhsiUDNpb3d4MbQFCnXVoxE+zU6pblC6RlK7ivN5nXxCwadhAc Xopg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=d/Z7awvrYGMGgW5gebyxG8uA/SddYL0ui4DyfJdxS5Q=; b=vdAWb/HKGvRwNi/gH+IISA3nw9kzWMtMbr1WfWDedR4UvhpuEbIwD0EvHzwkKl5kvw pRM1PSJf3unGQRDe4R4uuUm+VZb+qtVVUYGitsZQJCnMoXCXLX1oTDXAHEuUg1VmB3Uc g/JXrBBYaR5gLWV7aIHNzw4fNsyy9SZ6RZX2/7KvQUJg6/qqOtiMpYN++5tJzOoEuHUO R/cqTasdmP/BevY4kCP7DyaCOngQKbv/FHeDPidJMT6/gAiJLmN5Fja54VBShUPGyzrT LkM6NiPaeBYepwXRPgwyQxCOBuEGg2pLacGSnMesYliMBr2OyNnyRI1FOXcX6rmvraXv aPOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=IQHZVwb0; 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 j5si7764377pjf.60.2019.08.10.08.54.24; Sat, 10 Aug 2019 08:54:25 -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=@nifty.com header.s=dec2015msa header.b=IQHZVwb0; 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 S1726246AbfHJPyV (ORCPT + 28 others); Sat, 10 Aug 2019 11:54:21 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:34077 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbfHJPyV (ORCPT ); Sat, 10 Aug 2019 11:54:21 -0400 Received: from grover.flets-west.jp (softbank126125143222.bbtec.net [126.125.143.222]) (authenticated) by conuserg-11.nifty.com with ESMTP id x7AFrG8v009713; Sun, 11 Aug 2019 00:53:19 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x7AFrG8v009713 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1565452399; bh=d/Z7awvrYGMGgW5gebyxG8uA/SddYL0ui4DyfJdxS5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IQHZVwb0Bl/e5zBR92jGac/U7vVDzGHJ0MAp4usJPEVqFBobrgakJoA2YHNYi7T9A q+l8IWsSyck9kt7sqAGBwq7FhSN1y7Aj8EJO2KvpSfqrAhGc/bf6tMAcHkvNZ/KIX/ ay4Wk/O5fGoP78N0PatHXVWEUWLCAaibZnIsbGXBYubZgpoqEFbrgHIV56GW2GtM2b WWy8ZWOGDtzDvr4BlY7CSXu+qVsESw5LMEtF1+F/ryDorkPY9/Bh8bswIIO8SETBWy mu2zyDhXj9n6yYOQC0rkJ+Dfsc30wR0J2yWxXOev+7GZCCTR9dlXiHmU1J1wkSiUbR Mr3BPcS2/TS5Q== X-Nifty-SrcIP: [126.125.143.222] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Christoph Hellwig , Sam Ravnborg , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 02/11] kbuild: refactor part-of-module more Date: Sun, 11 Aug 2019 00:52:58 +0900 Message-Id: <20190810155307.29322-3-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190810155307.29322-1-yamada.masahiro@socionext.com> References: <20190810155307.29322-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make it even shorter. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.17.1 diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 2f66ed388d1c..64e47a9a54c5 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -98,8 +98,7 @@ endif # --------------------------------------------------------------------------- # Default is built-in, unless we know otherwise -$(foreach x, i ll lst o s symtypes, $(patsubst %.o,%.$(x),$(real-obj-m))): \ - part-of-module := y +part-of-module = $(if $(filter $(basename $@).o, $(real-obj-m)),y) modkern_cflags = \ $(if $(part-of-module), \