Skip to content

Commit 1a7c8d2

Browse files
committed
kallsyms: change sym_entry::percpu_absolute to bool type
This field is boolean. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 1d48f8f commit 1a7c8d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/kallsyms.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct sym_entry {
3636
unsigned long long addr;
3737
unsigned int len;
3838
unsigned int seq;
39-
unsigned int percpu_absolute;
39+
bool percpu_absolute;
4040
unsigned char sym[];
4141
};
4242

@@ -181,7 +181,7 @@ static struct sym_entry *read_symbol(FILE *in, char **buf, size_t *buf_len)
181181
sym->len = len;
182182
sym->sym[0] = type;
183183
strcpy(sym_name(sym), name);
184-
sym->percpu_absolute = 0;
184+
sym->percpu_absolute = false;
185185

186186
return sym;
187187
}
@@ -339,7 +339,7 @@ static int expand_symbol(const unsigned char *data, int len, char *result)
339339
return total;
340340
}
341341

342-
static int symbol_absolute(const struct sym_entry *s)
342+
static bool symbol_absolute(const struct sym_entry *s)
343343
{
344344
return s->percpu_absolute;
345345
}
@@ -781,7 +781,7 @@ static void make_percpus_absolute(void)
781781
* versions of this tool.
782782
*/
783783
table[i]->sym[0] = 'A';
784-
table[i]->percpu_absolute = 1;
784+
table[i]->percpu_absolute = true;
785785
}
786786
}
787787

0 commit comments

Comments
 (0)