[-mm patch] arch/i386/mm/ioremap.c must #include <asm/cacheflush.h>

From: Adrian Bunk
Date: Sun Aug 13 2006 - 11:28:32 EST


On Sun, Aug 13, 2006 at 01:24:54AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.18-rc3-mm2:
>...
> +generic-ioremap_page_range-i386-conversion.patch
>...
> Code consolidation

This gives the following compile error with
-Werror-implicit-function-declaration:

<-- snip -->

...
CC arch/i386/mm/ioremap.o
/home/bunk/linux/kernel-2.6/linux-2.6.18-rc4-mm1/arch/i386/mm/ioremap.c:
In function âioremap_nocacheâ:
/home/bunk/linux/kernel-2.6/linux-2.6.18-rc4-mm1/arch/i386/mm/ioremap.c:142:
error: implicit declaration of function âchange_page_attrâ
/home/bunk/linux/kernel-2.6/linux-2.6.18-rc4-mm1/arch/i386/mm/ioremap.c:146:
error: implicit declaration of function âglobal_flush_tlbâ

<-- snip -->

If anyone with CONFIG_X86_PAE=y experiences runtime stack corruption,
the patch below might help.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.18-rc4-mm1/arch/i386/mm/ioremap.c.old 2006-08-13 12:49:18.000000000 +0200
+++ linux-2.6.18-rc4-mm1/arch/i386/mm/ioremap.c 2006-08-13 12:49:40.000000000 +0200
@@ -14,6 +14,7 @@
#include <linux/module.h>
#include <linux/io.h>
#include <asm/fixmap.h>
+#include <asm/cacheflush.h>
#include <asm/tlbflush.h>
#include <asm/pgtable.h>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/