summaryrefslogtreecommitdiff
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-04 10:53:18 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-02-19 22:50:34 +0900
commit500193ec57fddf5e52d64fd7278b37a6afc9f773 (patch)
treecc822d26a9229adbc3faceb6c6458107ac65c9c9 /scripts/kallsyms.c
parent52a849ed8896d733de6005993f34407f7512311a (diff)
downloadlinux-starfive-500193ec57fddf5e52d64fd7278b37a6afc9f773.tar.gz
linux-starfive-500193ec57fddf5e52d64fd7278b37a6afc9f773.tar.bz2
linux-starfive-500193ec57fddf5e52d64fd7278b37a6afc9f773.zip
kallsyms: include <asm/bitsperlong.h> instead of <asm/types.h>
<asm/bitsperlong.h> is enough to include the definition of BITS_PER_LONG. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f1b57492adef..03ff265fe522 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -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");