mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] include: linux/types.h: define intptr_t
@ 2024-05-21  8:29 Ahmad Fatoum
  2024-05-21 11:07 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-05-21  8:29 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-21 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-21  8:29 [PATCH] include: linux/types.h: define intptr_t Ahmad Fatoum
2024-05-21 11:07 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox