Skip to content

Commit

Permalink
kallsyms: include <asm/bitsperlong.h> instead of <asm/types.h>
Browse files Browse the repository at this point in the history
<asm/bitsperlong.h> is enough to include the definition of
BITS_PER_LONG.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Feb 19, 2019
1 parent 52a849e commit 500193e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ static void write_src(void)
unsigned int *markers;
char buf[KSYM_NAME_LEN];

printf("#include <asm/types.h>\n");
printf("#include <asm/bitsperlong.h>\n");
printf("#if BITS_PER_LONG == 64\n");
printf("#define PTR .quad\n");
printf("#define ALGN .balign 8\n");
Expand Down

0 comments on commit 500193e

Please sign in to comment.