linux/types.h: add typedef of uintptr_t
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 17 Oct 2017 13:30:19 +0000 (22:30 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 17 Nov 2017 12:44:13 +0000 (07:44 -0500)
Add this typedef in the same place as in Linux.  This is necessary
to refactor libfdt inclusion.

U-Boot also defines it in include/compiler.h.  Of course it should
not do that, but I do not want to open a can of worms.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/linux/types.h

index 416fa6628482d8cb5afa356df2f3e34f2411fa8d..7c33e7adbc2abf1d49adb27ea412b3cb1a9d421f 100644 (file)
@@ -24,6 +24,8 @@ typedef __kernel_gid32_t      gid_t;
 typedef __kernel_uid16_t        uid16_t;
 typedef __kernel_gid16_t        gid16_t;
 
+typedef unsigned long          uintptr_t;
+
 #ifdef CONFIG_UID16
 /* This is defined by include/asm-{arch}/posix_types.h */
 typedef __kernel_old_uid_t     old_uid_t;