diff mbox series

[4/5] linux/types.h: add typedef of uintptr_t

Message ID 1508247020-28071-5-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 1c4b453ad2a62d0243ae5fd6657f2d6b7eb7332d
Headers show
Series libfdt: Reduce duplicated copies of libfdt | expand

Commit Message

Masahiro Yamada Oct. 17, 2017, 1:30 p.m. UTC
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 | 2 ++
 1 file changed, 2 insertions(+)

Comments

Tom Rini Nov. 17, 2017, 3:43 p.m. UTC | #1
On Tue, Oct 17, 2017 at 10:30:19PM +0900, Masahiro Yamada wrote:

> 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>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/include/linux/types.h b/include/linux/types.h
index 416fa66..7c33e7a 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -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;