Re: [PATCH v3 0/4] nvmem: fix a const-unsoundness in reg_write
Andy Shevchenko <[email protected]> Thu, 16 Jul 2026 21:09:45 +0300
| Newsgroups | dev.linux.lists.asahi,dev.linux.lists.imx,org.infradead.lists.linux-amlogic,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Organization | Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo |
| Message-ID | <[email protected]> |
On Thu, Jul 16, 2026 at 04:24:07PM +0200, Link Mauve wrote: > This callback used to take a mutable void * for no reason, which causes > the compiler to be unaware that the val buffer should never be modified > by the callback. > > This was found while drafting the nvmem-provider Rust abstraction. > > Thanks to the guidance of Andy Shevchenko, this now introduces a new > callback and deprecates the existing one, with the goal of renaming the > new one into the old one once no user remains in the kernel. ... > - Actually test with COMPILE_TEST, which I forgot to enable before⦠Hint, you may use folder as a target in `make`. To avoid this just run make ... allyesconfig drivers/nvmem/ (In the similar way for any other folder and its subfolders.) -- With Best Regards, Andy Shevchenko