Skip to contentSkip to conversation

fix standalone inclusion of asm-i386/dma-mapping.h

PATCH New Christoph Hellwig 1 participant 1 message Jun 15, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix standalone inclusion of asm-i386/dma-mapping.h

Without this a usb-storage patch I sent fails on x86 because dma-mapping.h uses struct device and various VM stuff without proper includes. It's fine on ppc at least.

include/asm-i386/dma-mapping.h +3 -0
@@ -1,6 +1,9 @@
 #ifndef _ASM_I386_DMA_MAPPING_H
 #define _ASM_I386_DMA_MAPPING_H
 
+#include <linux/device.h>
+#include <linux/mm.h>
+
 #include <asm/cache.h>
 #include <asm/io.h>
 #include <asm/scatterlist.h>