* [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
* Re: [PATCH] include: linux/types.h: define intptr_t
2024-05-21 8:29 [PATCH] include: linux/types.h: define intptr_t Ahmad Fatoum
@ 2024-05-21 11:07 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-05-21 11:07 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Tue, 21 May 2024 10:29:44 +0200, Ahmad Fatoum wrote:
> We already define the unsigned uintptr_t, but lack its signed
> counterpart although we do define INTPTR_MAX. Add the definition
> for completeness.
>
>
Applied, thanks!
[1/1] include: linux/types.h: define intptr_t
https://git.pengutronix.de/cgit/barebox/commit/?id=7176954ca289 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ 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