Skip to contentSkip to conversation

rocket: fix compiler warning on rocket_pci_ids

PATCH New Namhyung Kim 1 participant 3 messages Dec 7, 2010 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 rocket: fix compiler warning on rocket_pci_ids

Annotate rocket_pci_ids as '__used' to fix following warning:

CC drivers/char/rocket.o
drivers/char/rocket.c:1767: warning: ‘rocket_pci_ids’ defined but not used

---
 drivers/char/rocket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/rocket.c +1 -1
index 8630883..3e4e73a 100644
@@ -1764,7 +1764,7 @@ static void rp_flush_buffer(struct tty_struct *tty)
 
 #ifdef CONFIG_PCI
 
-static struct pci_device_id __devinitdata rocket_pci_ids[] = {
+static struct pci_device_id __devinitdata __used rocket_pci_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_RP, PCI_ANY_ID) },
 	{ }
 };
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 2/3 specialix: fix compiler warning on specialix_pci_tbl

Annotate specialx_pci_tbl as '__used' to fix following warning:

CC drivers/char/specialix.o
drivers/char/specialix.c:2358: warning: ‘specialx_pci_tbl’ defined but not used

---
 drivers/char/specialix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/specialix.c +1 -1
index a7616d2..c2bca3f 100644
@@ -2355,7 +2355,7 @@ static void __exit specialix_exit_module(void)
 	func_exit();
 }
 
-static struct pci_device_id specialx_pci_tbl[] __devinitdata = {
+static struct pci_device_id specialx_pci_tbl[] __devinitdata __used = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_SPECIALIX, PCI_DEVICE_ID_SPECIALIX_IO8) },
 	{ }
 };
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 3/3 ip2: fix compiler warning on ip2main_pci_tbl

In reply to Namhyung Kim

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

Cc "Michael H. Warfield" <[email protected]>
---
 drivers/char/ip2/ip2main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/ip2/ip2main.c +1 -1
index fcd02ba..c3a0253 100644
@@ -3224,7 +3224,7 @@ ip2trace (unsigned short pn, unsigned char cat, unsigned char label, unsigned lo
 
 MODULE_LICENSE("GPL");
 
-static struct pci_device_id ip2main_pci_tbl[] __devinitdata = {
+static struct pci_device_id ip2main_pci_tbl[] __devinitdata __used = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_IP2EX) },
 	{ }
 };
Signature · 1 line
1.7.0.4