Re: [PATCH 1/8] nvmem: core: make reg_write() take a const void *

Link Mauve <[email protected]>
Newsgroups dev.linux.lists.mfd,dev.linux.lists.imx,dev.linux.lists.linux-sunxi,org.infradead.lists.linux-amlogic,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-gpio,org.kernel.vger.linux-i2c,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel,org.kernel.vger.linux-media,org.kernel.vger.linux-omap,org.kernel.vger.linux-rtc,org.kernel.vger.rust-for-linux
Message-ID <alfZd_eHgNk9izcy@luna>
On Wed, Jul 15, 2026 at 09:58:08PM +0300, Andy Shevchenko wrote:
> On Wed, Jul 15, 2026 at 07:52:17PM +0200, Link Mauve wrote:
> > This callback used to take a mutable void * for no reason, this was
> > found while drafting the Rust abstraction.
> 
> I don't understand how it was compiled. const void * != void * in C and can't
> be implicitly covered, if I am not mistaken. So, this patch heavily should
> break the build. What did I miss?

I think I missed a lot of those drivers while compiling, probably
because I built it for my target hardware instead of doing a
COMPILE_TEST.

> 
> -- 
> With Best Regards,
> Andy Shevchenko
> 
> 

-- 
Link Mauve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.