Messages in this thread Patch in this message | | | Date | Thu, 3 Jul 2003 18:14:29 +0200 | From | Adrian Bunk <> | Subject | [patch] 2.5.74: i2o_scsi.c must include pci.h |
| |
I got the following compile error with 2.5.74:
<-- snip -->
... CC drivers/message/i2o/i2o_scsi.o drivers/message/i2o/i2o_scsi.c: In function `i2o_scsi_reply': drivers/message/i2o/i2o_scsi.c:327: warning: implicit declaration of function `pci_unmap_sg' drivers/message/i2o/i2o_scsi.c:329: warning: implicit declaration of function `pci_unmap_single' drivers/message/i2o/i2o_scsi.c: In function `i2o_scsi_queuecommand': drivers/message/i2o/i2o_scsi.c:763: warning: implicit declaration of function `pci_map_sg' drivers/message/i2o/i2o_scsi.c:833: warning: implicit declaration of function `pci_map_single' ... LD .tmp_vmlinux1 drivers/built-in.o(.text+0x5e871c): In function `i2o_scsi_reply': : undefined reference to `pci_unmap_single' drivers/built-in.o(.text+0x5e873c): In function `i2o_scsi_reply': : undefined reference to `pci_unmap_sg' drivers/built-in.o(.text+0x5e9471): In function `i2o_scsi_queuecommand': : undefined reference to `pci_map_sg' drivers/built-in.o(.text+0x5e9781): In function `i2o_scsi_queuecommand': : undefined reference to `pci_map_single' make: *** [.tmp_vmlinux1] Error 1
<-- snip -->
The fix is simple:
--- linux-2.5.74-not-full/drivers/message/i2o/i2o_scsi.c.old 2003-07-03 17:59:18.000000000 +0200 +++ linux-2.5.74-not-full/drivers/message/i2o/i2o_scsi.c 2003-07-03 18:00:11.000000000 +0200 @@ -49,6 +49,7 @@ #include <linux/delay.h> #include <linux/proc_fs.h> #include <linux/prefetch.h> +#include <linux/pci.h> #include <asm/dma.h> #include <asm/system.h> #include <asm/io.h>
cu Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |