Skip to content

Commit 6ce5169

Browse files
NeerajSanjayKaleVudentz
authored andcommitted
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 <[email protected]> Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent a2904d2 commit 6ce5169

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/bluetooth/btnxpuart.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,17 +1319,17 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
13191319
hci_free_dev(hdev);
13201320
}
13211321

1322-
static struct btnxpuart_data w8987_data = {
1322+
static struct btnxpuart_data w8987_data __maybe_unused = {
13231323
.helper_fw_name = NULL,
13241324
.fw_name = FIRMWARE_W8987,
13251325
};
13261326

1327-
static struct btnxpuart_data w8997_data = {
1327+
static struct btnxpuart_data w8997_data __maybe_unused = {
13281328
.helper_fw_name = FIRMWARE_HELPER,
13291329
.fw_name = FIRMWARE_W8997,
13301330
};
13311331

1332-
static const struct of_device_id nxpuart_of_match_table[] = {
1332+
static const struct of_device_id nxpuart_of_match_table[] __maybe_unused = {
13331333
{ .compatible = "nxp,88w8987-bt", .data = &w8987_data },
13341334
{ .compatible = "nxp,88w8997-bt", .data = &w8997_data },
13351335
{ }

0 commit comments

Comments
 (0)