Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp38462pxb; Tue, 28 Sep 2021 14:54:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPdfVYE9EZUr5I8z7ZfsFTw9QnZZIhYFG12uPfUPzFOMBvlzWXvjQ/ZzvR93GmKVlyiJWy X-Received: by 2002:a17:902:c789:b0:13c:937b:a5ce with SMTP id w9-20020a170902c78900b0013c937ba5cemr6874517pla.75.1632866059192; Tue, 28 Sep 2021 14:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632866059; cv=none; d=google.com; s=arc-20160816; b=sCnbYlL0AYoDGUMLWSO5KLJfOiA+7/mKrS+Q0OroS7d/NmlaED4k/gdNV6WmHwerBC P+TAxIGDwuvfn8VDYzeo20txlQ+0u7bHPci7dwi3iwDbGnG3X9hsaqOElSfcHqz5dHbc YnV+4o3FEamXw2krkEvuKD/mq5JOwOBPwgrsfHBAdTet8b0jAUuEuEmObJnaIEyzEbu2 zh4mqYCZehwdPZrsEg5gdsXLc4EcxKQSEsWEp0JGMAx5FJHPNRZPa16ShE9zGzm6DKcz N/gYEf33yPeNi0mncgsZYp2aybXxOdagXJlv5ZjvWA7MwwLAVWCgHm9KehpcaL3BpuL5 VSyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NoPUt9ASEqHDznbHraYLbUDDLJrtcCACuDJpHqzvQZ4=; b=DbbV+JyZFXhs3lkHkEEvTCzJ0y1ZdzwkIDjhBPwNQxgJOqDEcNzstHTzrlF1Y9JL7C hpfsUSOFqIR1E204kDph/hoRrq5AcVLk7qvVwVkHh/VoYNX2J0vuqUP89oobS5USzfqD DRGLZ/Eki+NPb636ROkHCRjiotFWd3tAikOjYje/W9zqt/LMbDhdSEduLOQc09VY0oxr QNwu+ne32/vYVdFaM/PEJ3+TmlZKVuYYxM2L8npwZsLrazYk2EQj2xMbE0FY7ZlnI1+N 6CRsTRXZ3QrzSScZu9U0pJVb7N5U9BiucGNssDco4FaYVI7bdj00hauEXZg/IJ0pWs+L 3u8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9qRq5tb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si205922plo.443.2021.09.28.14.53.41; Tue, 28 Sep 2021 14:54:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S9qRq5tb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241482AbhI1VxR (ORCPT + 99 others); Tue, 28 Sep 2021 17:53:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:59976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243001AbhI1VxR (ORCPT ); Tue, 28 Sep 2021 17:53:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40BA26128E; Tue, 28 Sep 2021 21:51:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632865897; bh=HU2rIkn452EBEM7riX0Tb1eZUixsiqey2KImPfM+l5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S9qRq5tb4xy9OkjD4dw/iYDtpw5WnSE55aNbHMyC1Rvmh1GeVQVsMZqCvp+XREky1 TGQqJo0WwdzRO8FXLRwageGed/1CcO6rrCFjB+0WY/A7JLmmgrE/6Gyv+oaDgX+52i T5iUF5R/BbYAqb75qxPnrBRK3zfvntM/FD1fFbBGiXuh4N+W3W50VihczOOexDrB29 OOvq2punZUr58wCaCxP2Ju5f7KqdVuu4uolmroGcZEVeM9Be2MgNNmiKFZGJ0zRB3W iv7iycTPwP+8mBr+HA9Amv//+9f4joQ4e5CXRN5bqK9nfxWHYpnTEOkb8M3xGwhwv2 DysjJx3GoR4aQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mVL0h-000mPl-7Z; Tue, 28 Sep 2021 23:51:35 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH] scripts: get_abi.pl: make undefined search more deterministic Date: Tue, 28 Sep 2021 23:51:32 +0200 Message-Id: <5dc55fd42e632a24a48f95212aa6c6bc4b2d11fd.1632865873.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sort keys on hashes during undefined search, in order to make the script more deterministic. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index 841d889747c0..d32dcd7cca5d 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -775,6 +775,8 @@ sub check_undefined_symbols { my $next_i = 0; my $start_time = times; + @files = sort @files; + my $last_time = $start_time; # When either debug or hint is enabled, there's no sense showing @@ -909,16 +911,16 @@ sub undefined_symbols { } } # Compile regexes - foreach my $l (keys %leaf) { + foreach my $l (sort keys %leaf) { my @expr; - foreach my $w(split /\xac/, $leaf{$l}->{what}) { + foreach my $w(sort split /\xac/, $leaf{$l}->{what}) { push @expr, qr /^$w$/; } $leaf{$l}->{expr} = \@expr; } # Take links into account - foreach my $link (keys %aliases) { + foreach my $link (sort keys %aliases) { my $abs_file = $aliases{$link}; graph_add_link($abs_file, $link); } -- 2.31.1