OSDN Git Service

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 f1b5749..03ff265 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");