Received: by 10.223.185.116 with SMTP id b49csp6139485wrg; Thu, 8 Mar 2018 02:26:33 -0800 (PST) X-Google-Smtp-Source: AG47ELssonjpkApw5VPlpuvx4IJiy925ZnUxu2vf6P1FU3HxlGONft+JcKEDk++H6eWrME8JAQVy X-Received: by 2002:a17:902:4001:: with SMTP id b1-v6mr22520280pld.28.1520504793802; Thu, 08 Mar 2018 02:26:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520504793; cv=none; d=google.com; s=arc-20160816; b=Gf1lSj3d7d+RbanA4Gm3YwgdomtyCBrMb6kKEU1+U/sVvB22RQtD41e2RzxQsOo1Ge 9XDBAUym7Y+Gwmd/OupF29r9NDO2iw7aWrVdX8I9x5RO+Tt+eCdvclBwHr0OzXcuJdOU AWj3D2BTz19j2ZKdgv5djyF5wRQ+ESHLlzJ9qKPTkWuCa1JsacHYdg93wNniccWARcwA fpButle+K9neOOrgIx2YuuvgKeEvoyujiqZHVbqsG5ZGAnVIb/v+NWgquqqmL507poxQ lo/TGTC7a8xDZlpz7K2I+3iLRn9GFYzPnBfLNl9rpeBZlPHjQx/s51pnCh19nt+cXKPq NEdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=NVXkBZxH9BqEWm+X6nZc3ba7W+F61n8yGoNMMEp7hGg=; b=pwD4jW8tPmCG/pWZlMQBj42r8/Dem3agSCsEviJhkZT5lTIZj2EpPO97p6Rw/f9dvO m6PNqvfXePEJKazYKO0kAESDSDJLMvMesqBKF7V7qbN4zHSNoxhztB8eOR5mOOgtTvdg 3/StWkd4ORManHbBr88Rj5Uzn43HS50YnAnCg9GRUS5Hq5WJ5U5qK5/6tGbCoYC0VIV0 krLDTNd5xgv+Eqd8R5iKzsFK0rI+n4CRtv6SwM4xHBbbDak0kkMqrlczu+M0Irl0b9Gh MlWj0j7TrhH0P3ntqtc5DBw8uIYiYve9nKTdATd5tFXcn0vKT8m8f+Q7w4bbQuXn3uF6 Pk8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=I5w6LKhX; 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 i127si12815345pgc.100.2018.03.08.02.26.19; Thu, 08 Mar 2018 02:26:33 -0800 (PST) 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=I5w6LKhX; 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 S935652AbeCHKZJ (ORCPT + 99 others); Thu, 8 Mar 2018 05:25:09 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:45479 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755107AbeCHKZF (ORCPT ); Thu, 8 Mar 2018 05:25:05 -0500 Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com [209.85.213.47]) (authenticated) by conssluserg-03.nifty.com with ESMTP id w28AOpsF027953; Thu, 8 Mar 2018 19:24:51 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com w28AOpsF027953 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520504692; bh=NVXkBZxH9BqEWm+X6nZc3ba7W+F61n8yGoNMMEp7hGg=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=I5w6LKhXhofM14Qe9JFkfOLOyxM3zGp+Fh4HXrdLCqxQfhKnz1iQWTcKckAVM+KJx 1xi4TnpCPOWUcwcyhGI4ZEPM+mNhTKpmHSiTjPjFNIz1S1IUz0cbv/ifnImY9QdDNS 7wnu2w8aUPp6+DpxPeK1hJTER+1SEw9qckdZ/EX/wtGof33SHZuVWxK2VgmJsJU+t5 7j2f+VWyWrYNSyvb4hZJepDG6qZsrU4q6qTMyBHC+hFcbARpVYkeazT5VSHEoANDeE UAEEECZSCfF1HDiZDbDOcm6lLYPfvBjUQPq5NDAM9kWLGxENLqA6SpUny0uYWXueFO SeKTJc7G9+/9w== X-Nifty-SrcIP: [209.85.213.47] Received: by mail-vk0-f47.google.com with SMTP id y127so3271797vky.9; Thu, 08 Mar 2018 02:24:51 -0800 (PST) X-Gm-Message-State: APf1xPAqy1N5x0uXHzvdh2IJwyEa2DBOXZ9OT72CC2PcJLqzMNI/rLtt opNsIWrJc+HbRcI+CGYGb85JIaKdJYq7VqR9YLk= X-Received: by 10.31.172.67 with SMTP id v64mr19114558vke.54.1520504690722; Thu, 08 Mar 2018 02:24:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Thu, 8 Mar 2018 02:24:10 -0800 (PST) In-Reply-To: <1520471103-10089-2-git-send-email-yamada.masahiro@socionext.com> References: <1520471103-10089-1-git-send-email-yamada.masahiro@socionext.com> <1520471103-10089-2-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Thu, 8 Mar 2018 19:24:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/5] kbuild: remove unnecessary $(subst $(obj)/,,...) in modname-multi To: Linux Kbuild mailing list Cc: Sam Ravnborg , Michal Marek , Cao jin , Govind Singh , Kalle Valo , Masahiro Yamada , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-08 10:04 GMT+09:00 Masahiro Yamada : > In the context ... > > $(obj)/%.s: $(src)/%.c FORCE > $(call if_changed_dep,cc_s_c) > > $(obj)/%.i: $(src)/%.c FORCE > $(call if_changed_dep,cpp_i_c) > > $(obj)/%.o: $(src)/%.c $(recordmcount_source) $(objtool_dep) FORCE > $(call cmd,force_checksrc) > $(call if_changed_rule,cc_o_c) > > $(obj)/%.lst: $(src)/%.c FORCE > $(call if_changed_dep,cc_lst_c) > > '$*' returns the stem of the target (the part of '%'), so $(obj)/ has > already been ripped off. > > $(subst $(obj)/,,$*.o) is the same as $(*.o) Log fix-up: ... is the same as $*.o > Signed-off-by: Masahiro Yamada > --- > > scripts/Makefile.lib | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib > index 5589bae..a7e315f 100644 > --- a/scripts/Makefile.lib > +++ b/scripts/Makefile.lib > @@ -175,7 +175,7 @@ dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ > > # Finds the multi-part object the current object will be linked into > modname-multi = $(sort $(foreach m,$(multi-used),\ > - $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=)))) > + $(if $(filter $*.o, $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=)))) > > # Useful for describing the dependency of composite objects > # Usage: > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada