From: "Christian A. Ehrhardt" <lk@c--e.de>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Uwe Kleine-König (The Capable Hub)"
<u.kleine-koenig@baylibre.com>,
"Luiz Augusto von Dentz" <luiz.dentz@gmail.com>,
"Ulf Hansson" <ulfh@kernel.org>,
"Christian A. Ehrhardt" <christian.ehrhardt@codasip.com>,
linux-mmc@vger.kernel.org,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Wolfram Sang" <wsa+renesas@sang-engineering.com>,
linux-kernel@vger.kernel.org,
"Marcel Holtmann" <marcel@holtmann.org>,
linux-bluetooth@vger.kernel.org,
"Matthias Brugger" <matthias.bgg@gmail.com>,
"AngeloGioacchino Del Regno"
<angelogioacchino.delregno@collabora.com>,
linux-mediatek@lists.infradead.org,
"Ping-Ke Shih" <pkshih@realtek.com>,
linux-wireless@vger.kernel.org, "Felix Fietkau" <nbd@nbd.name>,
"Lorenzo Bianconi" <lorenzo@kernel.org>,
"Ryder Lee" <ryder.lee@mediatek.com>,
"Shayne Chen" <shayne.chen@mediatek.com>,
"Sean Wang" <sean.wang@mediatek.com>,
"Brian Norris" <briannorris@chromium.org>,
"Francesco Dolcini" <francesco@dolcini.it>
Subject: Re: [PATCH v1 1/6] sdio: Add syntactic sugar to store a pointer in sdio_driver_id
Date: Wed, 22 Apr 2026 12:56:01 +0200 [thread overview]
Message-ID: <aeipQfCYKjl006uM@cae.in-ulm.de> (raw)
In-Reply-To: <aehwG2Egt93-sPVB@ashevche-desk.local>
Hi,
On Wed, Apr 22, 2026 at 09:52:11AM +0300, Andy Shevchenko wrote:
> > To be honest, with the involved void* this isn't really type-safe
> > either, but at least the data keeps being a pointer which is really
> > helpful on CHERI. FTR: The alternative would be to use uintptr_t instead
> > of unsigned long, which also has proponents in the CHERI community and
> > which is used in the current vendor patch stack.
>
> FWIW, Linus categorically told that it has to be no uintptr_t in the
> Linux kernel.
This is probably not the correct context to discuss this but
I will point out that if/when CHERI support is added to the
kernel we will need a way to distinguish between
* A (fat) pointer converted to an integer type (in order to do
integer arithmetic on the address) that might be converted back
to a pointer in the future and
* A plain address "extracted" from a fat pointer.
Using `uintptr_t` for the former and `unsigned long` for the
latter seems like a reasonable choice but there are certainly
other options.
Sorting out the difference between the two is a very large
part of the diff required to port Linux (or in fact any piece
of low-level software) to a CHERI system.
Best regards,
Christian
next prev parent reply other threads:[~2026-04-22 10:56 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-17 13:10 [PATCH v1 0/6] sdio: About pointers in sdio_device_id::driver_data Uwe Kleine-König (The Capable Hub)
2026-04-17 13:10 ` [PATCH v1 1/6] sdio: Add syntactic sugar to store a pointer in sdio_driver_id Uwe Kleine-König (The Capable Hub)
2026-04-17 14:11 ` sdio: About pointers in sdio_device_id::driver_data bluez.test.bot
2026-04-17 15:20 ` Uwe Kleine-König
2026-04-20 20:31 ` [PATCH v1 1/6] sdio: Add syntactic sugar to store a pointer in sdio_driver_id Uwe Kleine-König (The Capable Hub)
2026-04-20 20:46 ` Luiz Augusto von Dentz
2026-04-21 8:12 ` Uwe Kleine-König (The Capable Hub)
2026-04-21 8:59 ` Johannes Berg
2026-04-21 14:28 ` Uwe Kleine-König (The Capable Hub)
2026-04-21 15:54 ` Johannes Berg
2026-04-22 6:52 ` Andy Shevchenko
2026-04-22 8:39 ` Uwe Kleine-König (The Capable Hub)
2026-04-22 10:56 ` Christian A. Ehrhardt [this message]
2026-04-22 12:44 ` Andy Shevchenko
2026-05-11 14:33 ` Ulf Hansson
2026-04-17 13:10 ` [PATCH v1 2/6] Bluetooth: btmrvl_sdio: Make use of driver data pointer in sdio_device_id Uwe Kleine-König (The Capable Hub)
2026-04-17 13:10 ` [PATCH v1 3/6] Bluetooth: btmtksdio: " Uwe Kleine-König (The Capable Hub)
2026-04-17 13:10 ` [PATCH v1 4/6] wifi: rtw88: Benefit from sdio_device_id::driver_data_ptr Uwe Kleine-König (The Capable Hub)
2026-04-20 1:29 ` Ping-Ke Shih
2026-04-17 13:10 ` [PATCH v1 5/6] wifi: mt76: mt7921-sdio: Make use of driver data pointer in sdio_device_id Uwe Kleine-König (The Capable Hub)
2026-04-17 13:10 ` [PATCH v1 6/6] wifi: mwifiex: " Uwe Kleine-König (The Capable Hub)
2026-04-17 23:40 ` Brian Norris
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=aeipQfCYKjl006uM@cae.in-ulm.de \
--to=lk@c--e.de \
--cc=andriy.shevchenko@linux.intel.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=briannorris@chromium.org \
--cc=christian.ehrhardt@codasip.com \
--cc=francesco@dolcini.it \
--cc=gregkh@linuxfoundation.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=pkshih@realtek.com \
--cc=ryder.lee@mediatek.com \
--cc=sean.wang@mediatek.com \
--cc=shayne.chen@mediatek.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=ulfh@kernel.org \
--cc=wsa+renesas@sang-engineering.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.