From patchwork Tue Jul 30 15:59:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 170076 Delivered-To: patch@linaro.org Received: by 2002:ac9:2daa:0:0:0:0:0 with SMTP id g42csp4847259oce; Tue, 30 Jul 2019 08:59:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwP8ZBwJRocpye3yZ548YkTjFZOK3ACpwCI5ygKMouKKZ2E8V5eEcWlYEvTTodptY9gWdCe X-Received: by 2002:a17:902:d715:: with SMTP id w21mr78093526ply.261.1564502355794; Tue, 30 Jul 2019 08:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564502355; cv=none; d=google.com; s=arc-20160816; b=A2qzqD5/TZll5BmYmVRlZDRRQqWiER1BTB7ZRNl05WfG1etqWPHuyVLL6pZuMAHRv6 GhA+4T0V5z8XrrNk+YF3MOYPt10Ej/6CFPbzBNwtNIJ80hFco8Uh6wdKrldhruqbjTTC NHG/dmZQYicEVIl7W0uzoxXBmipC5DV34FjwM3JRgZuSnMN7/zt3SB9ZpCZktXXnaaSF rInMyzB85P539mmfB2mhK9UiESG+pMMcdF9pNKdTs7V6vl+vbs37SqHLtfbAkol5+UZR pDXagD4zOpizFyWOfwaD+MhWQReUeJU4sy8rPAwYPNacgGJU5+Xe+oWzb0aobn/ZKgHr b1AA== 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=uiroaNh4rM6/ZQ/tf4rAH6ElNB+2ooit+Zk/cSJmCvU=; b=FGaGec8NVJcEwRdZ9M+ti8MnMDt4gVjl8mp7u+0Kz88mhdXj0Ez7xMFzwoYRU4BtLY RLMcK/3ksx/J/wIqPkhu/n91GMO4UP4/83t6EtZ4cqME0iYSLx1v40Yc/F/flzr1ZsdX Yr4tI9U+qt4ATkhiIkUJN8bmf22wtUoHqbauz2RTMruD0sNCfAuSe+8S6Z9fqvnXcixV 8HzvX7YGE87KvqnzqTDj2XOio8z0Wvo5DiqzY+ZooqY9nGPv7EAlhGFiLM8hROiFe38p BAi/zFCy0FHplGR3g2vmQciKCyPC+sXKeUYmG3X83nLVOqel8d4oPYcNQpkjQ1xGOOAY Axuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=vKOSn1C5; 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 b5si28875761pfd.273.2019.07.30.08.59.15; Tue, 30 Jul 2019 08:59:15 -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=vKOSn1C5; 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 S1730522AbfG3P7O (ORCPT + 29 others); Tue, 30 Jul 2019 11:59:14 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:60069 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728448AbfG3P7N (ORCPT ); Tue, 30 Jul 2019 11:59:13 -0400 Received: from grover.flets-west.jp (softbank126026094249.bbtec.net [126.26.94.249]) (authenticated) by conuserg-11.nifty.com with ESMTP id x6UFx3RZ014915; Wed, 31 Jul 2019 00:59:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x6UFx3RZ014915 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1564502344; bh=uiroaNh4rM6/ZQ/tf4rAH6ElNB+2ooit+Zk/cSJmCvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vKOSn1C5rnpJBZOh6f5NCTL6evFD9dqrFRd2typ8BPWX34gSbSp3d5Nobzs3DLHNb PiyvmsEd0iSBgezaxtqQJklpi02KoVu0LUFiMJjESfZUkDou0PG0GseUssMTc9rMx+ H2Ad8PZV/1WrNdpDoT07DQYRAzx6SsOUKU9WSOCLdM1b9OAkkzEwmY9l6168SpUHHQ MPc8k/qb8IS2zTwiG00lh4DWZjj2U2NpS+opfv3wiLuL1/FKZp3jM3/dfvec5t2P7D pE+FNuDz7ddo3Yw6xS2MFxqeJ2IE6jMhpHYhqd3Dx58DDWsUzZ63NxCeTunFg1Yhyw iF0V/i7/Ovf3Q== X-Nifty-SrcIP: [126.26.94.249] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Michal Marek Subject: [PATCH 2/4] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules Date: Wed, 31 Jul 2019 00:59:00 +0900 Message-Id: <20190730155902.5557-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190730155902.5557-1-yamada.masahiro@socionext.com> References: <20190730155902.5557-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) while I was here. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modpost | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index ad4b9829a456..c856512349cd 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -78,7 +78,7 @@ modpost = scripts/mod/modpost \ $(if $(CONFIG_MODULE_SRCVERSION_ALL),-a,) \ $(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \ $(if $(KBUILD_EXTMOD),-I $(modulesymfile)) \ - $(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \ + $(if $(KBUILD_EXTMOD),$(addprefix -e ,$(KBUILD_EXTRA_SYMBOLS))) \ $(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \ $(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E) \ $(if $(KBUILD_MODPOST_WARN),-w)