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

ip2: fix compiler warning on ip2main_pci_tbl

Annotate ip2main_pci_tbl as '__used' to fix following warning:

CC drivers/char/ip2/ip2main.o
drivers/char/ip2/ip2main.c:3227: warning: ‘ip2main_pci_tbl’ defined but not used

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: "Michael H. Warfield" <mhw@wittsend.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Namhyung Kim and committed by
Greg Kroah-Hartman
53139e36 fd0f5c54

+1 -1
+1 -1
drivers/char/ip2/ip2main.c
··· 3224 3224 3225 3225 MODULE_LICENSE("GPL"); 3226 3226 3227 - static struct pci_device_id ip2main_pci_tbl[] __devinitdata = { 3227 + static struct pci_device_id ip2main_pci_tbl[] __devinitdata __used = { 3228 3228 { PCI_DEVICE(PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_IP2EX) }, 3229 3229 { } 3230 3230 };