Skip to content

Commit

Permalink
uwb: fix compiler warning on whcrc_id_table
Browse files Browse the repository at this point in the history
Annotate whcrc_id_table as '__used' to fix following warning:

  CC      drivers/uwb/whc-rc.o
drivers/uwb/whc-rc.c:452: warning: ‘whcrc_id_table’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Namhyung Kim authored and Greg Kroah-Hartman committed Dec 3, 2010
1 parent df4fede commit fc33b0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/uwb/whc-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ }
};
Expand Down

0 comments on commit fc33b0e

Please sign in to comment.