drivers/char/* - compile warning cleanup
Subsystems (2)
PATCH 3/26 drivers/char/* - compile warning cleanup
Description: compile warning cleanup - Add MODULE definition compile fence so MODULE_DEVICE_TABLE vars not declared when compiled into the kernel.
Signed-off-by Stephen Biggs <[email protected]>
drivers/char/applicom.c +2 -0
@@ -65,6 +65,7 @@ static char *applicom_pci_devnames[] = {"PCI2000PFB" }; +#ifdef MODULE static struct pci_device_id applicom_pci_tbl[] = { {PCI_VENDOR_ID_APPLICOM ,PCI_DEVICE_ID_APPLICOM_PCIGENERIC , PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
@@ -75,6 +76,7 @@ static struct pci_device_id applicom_pci { 0 } };MODULE_DEVICE_TABLE (pci, applicom_pci_tbl); +#endif MODULE_AUTHOR ("David Woodhouse & Applicom International" );MODULE_DESCRIPTION ("Driver for Applicom Profibus card" );
drivers/char/sx.c +2 -0
@@ -252,11 +252,13 @@#endif #ifdef CONFIG_PCI +#ifdef MODULE static struct pci_device_id sx_pci_tbl[] = { {PCI_VENDOR_ID_SPECIALIX ,PCI_DEVICE_ID_SPECIALIX_SX_XIO_IO8 ,PCI_ANY_ID ,PCI_ANY_ID }, {0 } };MODULE_DEVICE_TABLE (pci, sx_pci_tbl); +#endif #endif /* CONFIG_PCI */ /* Configurable options:
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors