lkml.org 
[lkml]   [2003]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.6] Fix warning in iee1394 dma.c
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)
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.015 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site