uwb: fix compiler warning on whcrc_id_table
PATCH v2 1/2 uwb: fix compiler warning on whcrc_id_table
Annotate whcrc_id_table as '__used' to fix following warning:
CC drivers/uwb/whc-rc.odrivers/uwb/whc-rc.c:452: warning: ‘whcrc_id_table’ defined but not used
Signed-off-by Namhyung Kim <[email protected]>
Cc David Vrabel <[email protected]>
--- drivers/uwb/whc-rc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/uwb/whc-rc.c +1 -1
@@ -449,7 +449,7 @@ static int whcrc_post_reset(struct umc_dev *umc) }/* PCI device ID's that we handle [so it gets loaded] */ -static struct pci_device_id whcrc_id_table[] = { +static struct pci_device_id __used whcrc_id_table[] = { {PCI_DEVICE_CLASS (PCI_CLASS_WIRELESS_WHCI , ~0 ) }, {/* empty last entry */ } };
Signature · 1 line
1.7.0.4
PATCH v2 2/2 uwb: fix compiler warning on i1480_est_id_table
Annotate i1480_est_id_table as '__used' to fix following warning:
CC drivers/uwb/i1480/i1480-est.odrivers/uwb/i1480/i1480-est.c:94: warning: ‘i1480_est_id_table’ defined but not used
Signed-off-by Namhyung Kim <[email protected]>
Cc David Vrabel <[email protected]>
--- drivers/uwb/i1480/i1480-est.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/uwb/i1480/i1480-est.c +1 -1
@@ -91,7 +91,7 @@ MODULE_LICENSE("GPL");* * [so we are loaded when this kind device is connected] */ -static struct usb_device_id i1480_est_id_table[] = { +static struct usb_device_id __used i1480_est_id_table[] = { {USB_DEVICE (0x8086 ,0xdf3b ), }, {USB_DEVICE (0x8086 ,0x0c3b ), }, { },
Signature · 1 line
1.7.0.4