Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: pxspad - fix unused data warning when force feedback not enabled

The functions using this data were protected with #ifdef
CONFIG_JOYSTICK_PSXPAD_SPI_FF. Do the same for the data used only in
those functions.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20221204180841.2211588-33-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Jonathan Cameron and committed by
Dmitry Torokhov
de4b8d20 1c89ef67

+3
+3
drivers/input/joystick/psxpad-spi.c
··· 44 44 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 45 45 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 46 46 }; 47 + 48 + #ifdef CONFIG_JOYSTICK_PSXPAD_SPI_FF 47 49 /* 0x01, 0x43, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 */ 48 50 static const u8 PSX_CMD_ENTER_CFG[] = { 49 51 0x80, 0xC2, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00 ··· 58 56 static const u8 PSX_CMD_ENABLE_MOTOR[] = { 59 57 0x80, 0xB2, 0x00, 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0xFF 60 58 }; 59 + #endif /* CONFIG_JOYSTICK_PSXPAD_SPI_FF */ 61 60 62 61 struct psxpad { 63 62 struct spi_device *spi;