Received: by 10.223.185.116 with SMTP id b49csp5713978wrg; Wed, 7 Mar 2018 17:09:40 -0800 (PST) X-Google-Smtp-Source: AG47ELvpQjFa6ozEVo0eUCr0dQJQsxEpyz7kCpnpjNZHvq2kEFOXUEHFa3RG6Gj08QqkQF/Aqo5z X-Received: by 10.98.155.194 with SMTP id e63mr24235164pfk.95.1520471380767; Wed, 07 Mar 2018 17:09:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520471380; cv=none; d=google.com; s=arc-20160816; b=UdvhzNpmBhPAb4AUmfhEzSH8EqA47VbWbYRRaKBHKn9NcZYbnl5+f0bBlqmxbPceNS G45Kc7SRuzwWc9IGSr7Y5cqBBfro72bRVdXCMd/CofCEL98M9fZH1+LrL1KYTRqXMQ0Q ddfdtSUdjjFt7PojhK7b9rtL29nl9B9SrZQ5YML9RtQhzD9KbeLEp4ch7Y4aeE6Bv7C3 naLNcedSBIaIIpSRQJiQ/xPfueZHIpr/Yj9qJelujJX7LgZGvr2T9X9g2Nktx/ZO1VQn 2/QJkDE3yCghcW6UNCMv7EKGx6AI/uB1wMiXnsDWB+oE4HZ1T1ip1Is4OO11RA1Q1mhH 2BoQ== 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 :arc-authentication-results; bh=b9Rgw1e2FUke82OybP8lef9ykXhCKyGguofV/SsdRmw=; b=dqCAxii5B0KyD+TE5NpxNwm5VW3fKemscqJ6HRK62Uj86a/ohgIGoW59Tu58ca5eqP uL8RbjQUJDNlqokBY8lCVtBjtFLR/Ne/JGm47VKlJ6MvpVplIT6dt/y878w1G9ID7gS8 l1KKLr2xflAceLnCWnz1MwwdzV5+DvyvesCiIPVWubYLs1/zkdZPdBCQ/kCpPxsznpDH uB2i4AuJ2YNVg4d0X2uo2Ch7pfYwNWtBVrdcaRhH8AlqieTu/R+Q240ub8OsBtA8YFth H4iMhz0Tp1jCZ4d6c3BxIGOO13jdaFZieo9J7JASDh//OdzZQe1pNOoIiuMK+HQHrXTi rlDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=K+j5HzRv; 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 bc12-v6si8028057plb.336.2018.03.07.17.09.26; Wed, 07 Mar 2018 17:09:40 -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=K+j5HzRv; 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 S1755258AbeCHBH3 (ORCPT + 99 others); Wed, 7 Mar 2018 20:07:29 -0500 Received: from conuserg-10.nifty.com ([210.131.2.77]:60402 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755044AbeCHBF4 (ORCPT ); Wed, 7 Mar 2018 20:05:56 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w28156G6018694; Thu, 8 Mar 2018 10:05:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w28156G6018694 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1520471108; bh=b9Rgw1e2FUke82OybP8lef9ykXhCKyGguofV/SsdRmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K+j5HzRvpsP6D0k4C5VEf4UOpVPHAlNFj/CU8NUh8g3t5XJuJtXIf7GC2HlKPy+Qz DPSIexuibkBae+xeXQRKwai4Vx4zh7FDWh+GCfv9BA0S/TsxSU4P+LnCjsOdK7LUjO cXqgDOZE+bfcDCUXf5yvXACC+Me1Q/qzAi42EgrfKrBEQ/1ODM2WXQfN/dgZ4ZPVFZ deoEUgFgKVpbPS1bL25R4x3zqh9SyTMAdFMirB/So6UBjmP4VwfZ637ez3ZXv48B1H 5WG265avL8ufSl8B9SiiL6Hz93kfQ7HjhAfI9zrWCudDGBJM7PdjD5dAWXAlgGcl2n x2OrqCKHfm/VA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Michal Marek , Cao jin , Govind Singh , Kalle Valo , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 1/5] kbuild: remove unnecessary $(subst $(obj)/,,...) in modname-multi Date: Thu, 8 Mar 2018 10:04:59 +0900 Message-Id: <1520471103-10089-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520471103-10089-1-git-send-email-yamada.masahiro@socionext.com> References: <1520471103-10089-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) 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