Skip to contentSkip to conversation

Fix scsi build on !CONFIG_GENERIC_ISA_DMA

PATCH Geert Uytterhoeven 1 participant 1 message Apr 21, 2003 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 21 lines · Linux Kernel Mailing List

ChangeSet 1.1101, 2003/04/17 22:02:50-07:00, [email protected]

[PATCH] Fix scsi build on !CONFIG_GENERIC_ISA_DMA

This allows the SCSI subsystem to build on systems where CONFIG_GENERIC_ISA_DMA is not set.

# This patch includes the following deltas:
# ChangeSet 1.1100 -> 1.1101
# drivers/scsi/hosts.c 1.56 -> 1.57
#

 hosts.c |    2 ++
 1 files changed, 2 insertions(+)

diff -Nru a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c

drivers/scsi/hosts.c line 191

Quoted 9 lines
drivers/scsi/hosts.c +2 -0
@@ -183,8 +183,10 @@
 {
 	if (shost->irq)
 		free_irq(shost->irq, NULL);
+#ifdef CONFIG_GENERIC_ISA_DMA
 	if (shost->dma_channel != 0xff)
 		free_dma(shost->dma_channel);
+#endif
 	if (shost->io_port && shost->n_io_port)
 		release_region(shost->io_port, shost->n_io_port);

Hence it needs to include <linux/config.h>

drivers/scsi/hosts.c +1 -0
@@ -27,6 +27,7 @@
  *  hosts currently present in the system.
  */
 
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/blk.h>
 #include <linux/kernel.h>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds