kallsyms: include <asm/bitsperlong.h> instead of <asm/types.h>
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 4 Feb 2019 01:53:18 +0000 (10:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 19 Feb 2019 13:50:34 +0000 (22:50 +0900)
<asm/bitsperlong.h> is enough to include the definition of
BITS_PER_LONG.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kallsyms.c

index f1b57492adefa574719df09d5e8acba2579ac2fd..03ff265fe52264cfd704e11d024258d4f9b1dfc2 100644 (file)
@@ -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");