From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] include: linux/types.h: define intptr_t
Date: Tue, 21 May 2024 10:29:44 +0200 [thread overview]
Message-ID: <20240521082944.7208-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2024-05-21 8:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-21 8:29 Ahmad Fatoum [this message]
2024-05-21 11:07 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240521082944.7208-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox