Skip to contentSkip to conversation

drivers/media/video/* - compile warning cleanup

PATCH In review Stephen Biggs 1 participant 1 message Feb 10, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/26 drivers/media/video/* - compile warning cleanup

Description: compile warning cleanup - Add MODULE definition compile fence so MODULE_DEVICE_TABLE vars not declared when compiled into the kernel

drivers/media/video/zoran_card.c +2 -0
diff -Nurdp -X dontdiff-osdl linux-2.6.11-rc3-mm-original/drivers/media/video/zoran_card.c linux-2.6.11-rc3-mm/drivers/media/video/zoran_card.c
@@ -145,12 +145,14 @@ MODULE_DESCRIPTION("Zoran-36057/36067 JP
 MODULE_AUTHOR("Serguei Miridonov");
 MODULE_LICENSE("GPL");
 
+#ifdef MODULE
 static struct pci_device_id zr36067_pci_tbl[] = {
 	{PCI_VENDOR_ID_ZORAN, PCI_DEVICE_ID_ZORAN_36057,
 	 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
 	{0}
 };
 MODULE_DEVICE_TABLE(pci, zr36067_pci_tbl);
+#endif
 
 #define dprintk(num, format, args...) \
 	do { \

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors