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

Bluetooth: btnxpuart: Fix compiler warnings

This fixes the follwing compiler warning reported by kernel test robot:

drivers/bluetooth/btnxpuart.c:1332:34: warning: unused variable
'nxpuart_of_match_table' [-Wunused-const-variable]

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202305161345.eClvTYQ9-lkp@intel.com/
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Neeraj Sanjay Kale and committed by
Luiz Augusto von Dentz
6ce5169e a2904d28

+3 -3
+3 -3
drivers/bluetooth/btnxpuart.c
··· 1319 1319 hci_free_dev(hdev); 1320 1320 } 1321 1321 1322 - static struct btnxpuart_data w8987_data = { 1322 + static struct btnxpuart_data w8987_data __maybe_unused = { 1323 1323 .helper_fw_name = NULL, 1324 1324 .fw_name = FIRMWARE_W8987, 1325 1325 }; 1326 1326 1327 - static struct btnxpuart_data w8997_data = { 1327 + static struct btnxpuart_data w8997_data __maybe_unused = { 1328 1328 .helper_fw_name = FIRMWARE_HELPER, 1329 1329 .fw_name = FIRMWARE_W8997, 1330 1330 }; 1331 1331 1332 - static const struct of_device_id nxpuart_of_match_table[] = { 1332 + static const struct of_device_id nxpuart_of_match_table[] __maybe_unused = { 1333 1333 { .compatible = "nxp,88w8987-bt", .data = &w8987_data }, 1334 1334 { .compatible = "nxp,88w8997-bt", .data = &w8997_data }, 1335 1335 { }