I also removed the panic, the BUG should shaft things bad enough.
drivers/ieee1394/dma.c: In function `dma_region_find':
drivers/ieee1394/dma.c:161: warning: control reaches end of non-void function
Index: linux-2.5/drivers/ieee1394/dma.c
===================================================================
RCS file: /home/cvs/linux-2.5/drivers/ieee1394/dma.c,v
retrieving revision 1.5
diff -u -p -B -r1.5 dma.c
--- linux-2.5/drivers/ieee1394/dma.c 27 Jun 2003 04:49:52 -0000 1.5
+++ linux-2.5/drivers/ieee1394/dma.c 16 Jul 2003 03:46:10 -0000
@@ -157,7 +157,9 @@ static inline int dma_region_find(struct
off -= sg_dma_len(&dma->sglist[i]);
}
- panic("dma_region_find: offset %lu beyond end of DMA mapping\n", offset);
+ printk("dma_region_find: offset %lu beyond end of DMA mapping\n", offset);
+ BUG();
+ return -ENOENT;
}
dma_addr_t dma_region_offset_to_bus(struct dma_region *dma, unsigned long offset)