Re: [PATCH] [RESEND] Input: synaptics: hide unused smbus_pnp_ids[] array
From: Dmitry Torokhov
Date: Tue Feb 25 2025 - 15:59:55 EST
On Tue, Feb 25, 2025 at 03:54:38PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> When SMBUS is disabled, this is never referenced, causing a W=1 warning:
>
> drivers/input/mouse/synaptics.c:164:27: error: 'smbus_pnp_ids' defined but not used [-Werror=unused-const-variable=]
>
> Hide the array behind the same #ifdef as the code referencing it.
>
> Fixes: e839ffab0289 ("Input: synaptics - add support for Intertouch devices")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Applied, thank you.
--
Dmitry