Re: [PATCH] nvram: Only define nvram_mutex where it is used

From: Geert Uytterhoeven

Date: Wed May 27 2026 - 09:37:36 EST


Hi Mukesh,

On Mon, 25 May 2026 at 10:04, Mukesh Kumar Chaurasiya (IBM)
<mkchauras@xxxxxxxxx> wrote:
> nvram_mutex is currently defined unconditionally, but is only used on
> x86, ppc32 and m68k. This causes an unused symbol warning on other
> architectures.
>
> Restrict the mutex definition to the architectures that actually require
> it and avoid generating unnecessary warnings on the remaining platforms.
>
> Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@xxxxxxxxx>

Thanks for your patch!

This seems to need more coordination in and outside IBM?

[PATCH v5] char/nvram: Remove redundant nvram_mutex
https://lore.kernel.org/all/20260428061540.73668-1-venkat88@xxxxxxxxxxxxx/

Gr{oetje,eeting}s,

Geert


--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds