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

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

Post by Christoph » Thu, 17 Jun 2004 00:20:09


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.



--- 1.7/include/asm-i386/dma-mapping.h 2004-05-25 11:53:06 +02:00
+++ edited/include/asm-i386/dma-mapping.h 2004-06-15 17:02:43 +02:00
@@ -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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

1. [PATCH] [3/6] Move inclusion of <linux/linkage.h> in <asm-i386/signal.h>

2. [PATCH] Fix asm-i386/desc.h:pack_descriptor()

Fix pack_descriptor:
1. flags are bits 20-23 in the high word
2. limit's 4 msb are bits 16-19 in the high word

These haven't mattered so far, because all users have had small limits
and a flags setting of 0.

Signed-off-by: Jeremy Fitzhardinge < XXXX@XXXXX.COM >

===================================================================
--- a/include/asm-i386/desc.h
+++ b/include/asm-i386/desc.h
@@ -41,7 +41,7 @@ static inline void pack_descriptor(__u32
{
*a = ((base & 0xffff) << 16) | (limit & 0xffff);
*b = (base & 0xff000000) | ((base & 0xff0000) >> 16) |
- ((type & 0xff) << 8) | ((flags & 0xf) << 12);
+ (limit & 0x000f0000) | ((type & 0xff) << 8) | ((flags & 0xf) << 20);
}

static inline void pack_gate(__u32 *a, __u32 *b,


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

3. [2.4 patch][5/6] asm-i386/smpboot.h: fix gcc 3.4 compilation

4. [PATCH 7/8] replacing/fixing printk with pr_debug/pr_info in include/asm-i386 - apic.h

5. [PATCH] include/asm-i386/byteorder.h: ANSI mode fixes

6. [PATCH 8/8] replacing/fixing printk with pr_debug/pr_info in include/asm-i386 - smpboot_hooks.h

7. [PATCH] x86: compile fix for asm-i386/alternatives.h

8. [PATCH] [10/26] i386: Clean up asm-i386/bugs.h

9. [PATCH] [13/40] i386: Document asm-i386/paravirt.h

10. [PATCH v2 0/4] ARM:dma-mapping:DMA-API debugging patch set

11. [-mm patch] include/asm-i386/acpi.h should #include <asm/processor.h>

12. [PATCH] dma-mapping.h stubs fix

13. [PATCH 2/2 v2] Blackfin: fix dma-mapping build errors

14. 2.6.20-rc2: kernel BUG at include/asm/dma-mapping.h:110!

15. [PATCH] dma-mapping: prevent dma dependent code from linking on !HAS_DMA archs