]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] alpha: dma-mapping.h: add "struct scatterlist;"
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 1 Feb 2006 11:04:56 +0000 (03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:11 +0000 (08:53 -0800)
On alpha-jensen:

  CC      drivers/base/platform.o
In file included from include/linux/dma-mapping.h:24,
                 from drivers/base/platform.c:16:
include/asm/dma-mapping.h:36: warning: "struct scatterlist" declared inside parameter list
include/asm/dma-mapping.h:36: warning: its scope is only this definition or declaration, which is probably not what you want

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-alpha/dma-mapping.h

index 9dc7256cf9798a39eeb0dbf11202c8c987a80bcb..62d0d6681aa91d587e52b5de824e90a790de9f2f 100644 (file)
@@ -30,6 +30,7 @@
 
 #else  /* no PCI - no IOMMU. */
 
+struct scatterlist;
 void *dma_alloc_coherent(struct device *dev, size_t size,
                         dma_addr_t *dma_handle, gfp_t gfp);
 int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,