]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: synaptics - hide unused smbus_pnp_ids[] array
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Feb 2025 20:25:35 +0000 (12:25 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 Feb 2025 20:58:41 +0000 (12:58 -0800)
commit496b7d2e5b936e3e8eae651b51db8a2f9cf0f8b8
tree0255aa0ff8127bc6105dc9fcedfb5d4b9454afea
parent564dcfc124c3ee862b50b2ee3ba438f09e2259de
Input: synaptics - hide unused smbus_pnp_ids[] array

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@arndb.de>
Link: https://lore.kernel.org/r/20250225145451.1141995-1-arnd@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c