[-mm patch] arch/i386/mm/ioremap.c must #include

Adrian Bunk
2006-08-13T15:30:31Z

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@stusta.de>

--- 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>