Re: [PATCH v2] misc/nvram: only declare mutex where it's used

From: Arnd Bergmann

Date: Sun May 03 2026 - 04:20:37 EST


On Sun, May 3, 2026, at 09:47, Simon Richter wrote:
> The ioctls using this are platform specific compatibility code. On other
> platforms, this generates a warning for an unused static variable.
>
> Fixes: 20e07af71f34d ("powerpc: Adopt nvram module for PPC64")
> Signed-off-by: Simon Richter <Simon.Richter@xxxxxxxxxx>
> ---
> drivers/char/nvram.c | 3 +++
> 1 file changed, 3 insertions(+)

I think the better fix is "[PATCH v5] char/nvram: Remove redundant
nvram_mutex", see

https://lore.kernel.org/all/20260428061540.73668-1-venkat88@xxxxxxxxxxxxx/

Arnd