Skip to content

Commit

Permalink
scripts/kallsyms: rename build_initial_tok_table()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhen Lei authored and Luis Chamberlain committed Nov 13, 2022
1 parent 45af1d7 commit fcdf719
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit fcdf719

Please sign in to comment.