scripts/kallsyms: rename build_initial_tok_table()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Nov 2022 08:49:13 +0000 (16:49 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Sun, 13 Nov 2022 02:47:35 +0000 (18:47 -0800)
Except for the function build_initial_tok_table(), no token abbreviation
is used elsewhere.

$ cat scripts/kallsyms.c | grep tok | wc -l
33
$ cat scripts/kallsyms.c | grep token | wc -l
31

Here, it would be clearer to use the full name.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
scripts/kallsyms.c

index 03fa07ad45d95b8e6ff64820fc4d34c2bc607214..ab105bdde4efe4f5d019f88a5d4f98c2a92c0a66 100644 (file)
@@ -573,7 +573,7 @@ static void forget_symbol(const unsigned char *symbol, int len)
 }
 
 /* do the initial token count */
-static void build_initial_tok_table(void)
+static void build_initial_token_table(void)
 {
        unsigned int i;
 
@@ -698,7 +698,7 @@ static void insert_real_symbols_in_table(void)
 
 static void optimize_token_table(void)
 {
-       build_initial_tok_table();
+       build_initial_token_table();
 
        insert_real_symbols_in_table();