From patchwork Tue Jul 30 15:59:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 170077 Delivered-To: patch@linaro.org Received: by 2002:ac9:2daa:0:0:0:0:0 with SMTP id g42csp4847293oce; Tue, 30 Jul 2019 08:59:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/0s5EY1+SstzUh8RrqAKbpU/56WQhmJwXesTgJ+WxoaqVBG14fr5Tu7XLTOgMkShyhOHA X-Received: by 2002:a63:7b18:: with SMTP id w24mr109081803pgc.328.1564502357986; Tue, 30 Jul 2019 08:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564502357; cv=none; d=google.com; s=arc-20160816; b=ZbioEhQZ07jPDY/ihaKj9aFqBJNIH1mAM1DQB49WkJn16KA/F9WIRzfRJuNnf0+//J t1r88aMt016UMxPhwjnLQ/FPXoBQNCM0/Gg4VbQVDW3bUfnyd6MHs0iSp+P5Q3J+uGDr J6d127vUikLCVzUV/syXCCThZqmnDDf4Lnfgs1DOXF6flnZ9ILZkY0frYS9Zsw7YyGrW TXuaolG14j61is9oCku99MVhQTU6dNTnMLfPR7R0Rm/7yCl9wkS6vXNooCX0nmkK3b3w 9jzHQDYLk+FPTkp0wK/Q7rV/Q9NV61v7tIZo/7ST5q7Yxn7MB0RM+85mYJIwA9j4SWLF X78g== 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=+WKRGvIah6n1cheWyt6d9fXDQQMt7RydACk7ei/74P4=; b=W01P1y6cCLvhyy2DXqhthZB7njVU3IGlf/Y8c6cwEKqdNHchrNdRkFwmG9VRPHsJup 1snmIUkAXYk5mwbMr/K5Sq35H6rrILvkn/h62OuaZaMwnzyPdlmZNtadHcjnO51t7e90 3qbOLGkbJPfXUUlyvbeXbmDV2x5VCTjwI5CuREjx6/umUL+d2xO9tEW4fgZy8V/t2z50 7MQNxyfV/gsAKEEeIIv1xPAv0VfWf7Y6hQiZS+8aqHWljPgqWALNfEHICiUS9fYLBuZo xSkhHZ5OEGRGxS1jo6aGJFhPz5AV1uRX6Lj/bytt+Bl7xTZtLbXwjOW/BNNAfUah1wjm 7jUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="J/mwep+h"; 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 k189si30355427pgd.408.2019.07.30.08.59.17; Tue, 30 Jul 2019 08:59:17 -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="J/mwep+h"; 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 S1732693AbfG3P7Q (ORCPT + 29 others); Tue, 30 Jul 2019 11:59:16 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:60070 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728759AbfG3P7N (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 x6UFx3Ra014915; Wed, 31 Jul 2019 00:59:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x6UFx3Ra014915 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1564502345; bh=+WKRGvIah6n1cheWyt6d9fXDQQMt7RydACk7ei/74P4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J/mwep+hCpVwNoCzgllncZ02A7L96qj1nskRO3h4bPoVxK3gXgGyI0pQiLZLsnud9 tOmvFm7HHyJQvyUDPLMTA9TyWPJQW8cbHVTN52dNSNe5ViYVjYVgCTVWLVE9qrIFjb /iD4UX3bIolA1tlz6Ur8bZyz0pgCFcP24E9idQ7XvAuHbb8B2tcPKz260hjtRWgT1p c3/FbtF9J6MP/r12JCbUCoNBt8hSiTeq4hswqo6of3sFs23/39QTaxj9kdKxd7dlUB NqE16egg6lD1WmBf8iQecNIWbWmEMo4SG3tEnqnUX+QsNYypCTRHPnc9oYQw8ys8ar o9T5VWE3YpRgA== 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 3/4] kbuild: modpost: remove unnecessary dependency for __modpost Date: Wed, 31 Jul 2019 00:59:01 +0900 Message-Id: <20190730155902.5557-3-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 __modpost is a phony target. The dependency on FORCE is pointless. All the objects have been built in the previous stage, so the dependency on the objects are not necessary either. Count the number of modules in a more straightforward way. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modpost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost index c856512349cd..fdab32d6f552 100644 --- a/scripts/Makefile.modpost +++ b/scripts/Makefile.modpost @@ -86,11 +86,11 @@ modpost = scripts/mod/modpost \ MODPOST_OPT=$(subst -i,-n,$(filter -i,$(MAKEFLAGS))) # We can go over command line length here, so be careful. -quiet_cmd_modpost = MODPOST $(words $(filter-out vmlinux FORCE, $^)) modules +quiet_cmd_modpost = MODPOST $(words $(modules)) modules cmd_modpost = sed 's/ko$$/o/' $(modorder) | $(modpost) $(MODPOST_OPT) -s -T - PHONY += __modpost -__modpost: $(modules:.ko=.o) FORCE +__modpost: $(call cmd,modpost) $(wildcard vmlinux) quiet_cmd_kernel-mod = MODPOST $@