diff mbox series

[3/3] kallsyms: include <asm/bitsperlong.h> instead of <asm/types.h>

Message ID 1549245198-6182-3-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 500193ec57fddf5e52d64fd7278b37a6afc9f773
Headers show
Series [1/3] kallsyms: add static qualifiers where missing | expand

Commit Message

Masahiro Yamada Feb. 4, 2019, 1:53 a.m. UTC
<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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f1b5749..03ff265 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");