[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <dc7ed8c3a9a30f3c04e0fb286d65e438c58ec949.1737135484.git.mchehab+huawei@kernel.org>
Date: Fri, 17 Jan 2025 18:59:30 +0100
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Linux Doc Mailing List <linux-doc@...r.kernel.org>,
Jonathan Corbet <corbet@....net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
"Mauro Carvalho Chehab" <mchehab+huawei@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH RFC 01/10] scripts/get_abi.pl use label to better sort ABI symbols and files
Currently, not all symbols are in labeled alphabetic order. That's
because they are using the hash table key, which doesn't necessarely
are identical to the label displayed for each symbol/file.
Add labels to file as well and use labels instead of key names
to sort them.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
---
scripts/get_abi.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl
index de1c0354b50c..2311d4e3f3ef 100755
--- a/scripts/get_abi.pl
+++ b/scripts/get_abi.pl
@@ -108,6 +108,7 @@ sub parse_abi {
$data{$nametag}->{filepath} = $file;
$data{$nametag}->{is_file} = 1;
$data{$nametag}->{line_no} = 1;
+ $data{$nametag}->{label} = "abi_file_$fn";
my $type = $file;
$type =~ s,.*/(.*)/.*,$1,;
@@ -320,7 +321,7 @@ sub output_rest {
foreach my $what (sort {
($data{$a}->{type} eq "File") cmp ($data{$b}->{type} eq "File") ||
- $a cmp $b
+ $data{$a}->{label} cmp $data{$b}->{label}
} keys %data) {
my $type = $data{$what}->{type};
--
2.47.1
Powered by blists - more mailing lists