From patchwork Wed Jul 17 06:17:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 169102 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp530495ilk; Tue, 16 Jul 2019 23:19:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNt6h079RJTa4EVJ7SdnAVlCzUMZbVtVa7G/lTGMhUzgwx68sMF52tAs4lXzGcdnqGR/Kx X-Received: by 2002:a17:902:b093:: with SMTP id p19mr39664661plr.141.1563344356531; Tue, 16 Jul 2019 23:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563344356; cv=none; d=google.com; s=arc-20160816; b=R3aoxwhA7KtDHzKsW6w777ow2CvdWc/sS5bhSi5uSclxD7QuNg9o+jtIMS44ovxgl7 S2rj1JRmRHePnUazsiZ4UcKB10GcwSqcMK1Jt0x85mrfwqRL18joKVRaE6nEGFWHc2DO wxwuHVDCnyJshUkj89IMsl7JfD13TS5t8N7tQ6GFmHsKwM95jqqM/QCb4di9XS0YPFaO NrlTAbl9J3bAq686oH2w22Jh8C1ORP9DpFiBvIFKLmi0B24nZ+t/UAdKP66kZb9QIJVV d1FLFDM0p1TJ2hcY9PlNPi8wgTix9B6vwoAHmQPRvHI0NrzdPjhAmS9n3Sdy7XdfNgb/ 6QSw== 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=QrjfI2RnWCz+plNxdKJS2TlPRyyWoZjdUiaEuuPNZUY=; b=xm3rSghutCUHF99/JJl3XcReB/6v6hbyM/zLh/GK+RM9vJ+tf7G/xiW8fVzQcePRqt cYVft9XtoodD03WNVb33cuNEPBj6m9hTPva+PmiSDeOY3ARoCYc25EBryHcng3gusWcZ l0ji5ZuxE0gABDkEoVBI5osMb1OoQXU0zbDiugk9K8FITqYB+CRpMlaUMEWctPaxuopH r4lm/sWnwpFud7PU/WuWDFyfRoJTiqTID0XZTGZsm96/y/zCa6YqtjEPoxvrLigk0s6b X9LoJscb4RhBiV9tNsjtGQBoAIEl0wn9onuoWT3WF1BxAb2lxk1cEVwWyxi44o549b0b d06Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RhOMv6RX; 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 31si21394956pld.245.2019.07.16.23.19.16; Tue, 16 Jul 2019 23:19:16 -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=RhOMv6RX; 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 S1726906AbfGQGS0 (ORCPT + 29 others); Wed, 17 Jul 2019 02:18:26 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:62956 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbfGQGSZ (ORCPT ); Wed, 17 Jul 2019 02:18:25 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id x6H6I5Ok009435; Wed, 17 Jul 2019 15:18:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com x6H6I5Ok009435 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563344291; bh=QrjfI2RnWCz+plNxdKJS2TlPRyyWoZjdUiaEuuPNZUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RhOMv6RXHKjoConPQ2URQSQTdnZRFSrzvfvIf1DK4Rg0PVzh8dciowkQj8RbrsSoK 2wBPXSQ+PSQwPz+CRMJzfpfoJqm1E8fiemM+PtpvXj8rKtaD9TkRbbOmDv2JD337LO OwYFGY6gHi/UdCwSy2Ns1y14LJ5ms9CHxqFWaayM6oe+eXaTkGNwMBSkbWY64wwxA5 dXhbdtgCrhLUqSthM6jDjEhpa+6SBfwQvRgDRTNbnC3JnG77VW3DaBdBjIePmTzq1q ShBwXCyUmSWNC6H3a+6v2KIvVTIs+nEr56zsusIL24qq3XeOUr1EKf372QIxf8HtOT gIgiSpL7geW6Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Joe Lawrence , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v3 08/12] kbuild: export_report: read modules.order instead of .tmp_versions/*.mod Date: Wed, 17 Jul 2019 15:17:56 +0900 Message-Id: <20190717061800.10018-9-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190717061800.10018-1-yamada.masahiro@socionext.com> References: <20190717061800.10018-1-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Towards the goal of removing MODVERDIR aka .tmp_versions, read out modules.order to get the list of modules to be processed. This is simpler than parsing *.mod files in .tmp_versions. Signed-off-by: Masahiro Yamada --- Changes in v3: - New patch Changes in v2: None scripts/export_report.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- 2.17.1 diff --git a/scripts/export_report.pl b/scripts/export_report.pl index 0f604f62f067..7d3030d03a25 100755 --- a/scripts/export_report.pl +++ b/scripts/export_report.pl @@ -52,13 +52,12 @@ sub usage { sub collectcfiles { my @file; - while (<.tmp_versions/*.mod>) { - open my $fh, '<', $_ or die "cannot open $_: $!\n"; - push (@file, - grep s/\.ko/.mod.c/, # change the suffix - grep m/.+\.ko/, # find the .ko path - <$fh>); # lines in opened file + open my $fh, '< modules.order' or die "cannot open modules.order: $!\n"; + while (<$fh>) { + s/\.ko$/.mod.c/; + push (@file, $_) } + close($fh); chomp @file; return @file; }