[PATCH] include: linux/types.h: define intptr_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We already define the unsigned uintptr_t, but lack its signed
counterpart although we do define INTPTR_MAX. Add the definition
for completeness.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/linux/types.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/types.h b/include/linux/types.h
index aee9dfa87e54..c5e38fee9595 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -26,6 +26,7 @@ typedef __kernel_key_t		key_t;
 typedef __kernel_suseconds_t	suseconds_t;
 typedef _Bool			bool;
 typedef unsigned long		uintptr_t;
+typedef long			intptr_t;
 
 #ifdef __KERNEL__
 typedef __kernel_uid32_t	uid_t;
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux