m68k: fix kunmap usage in pte_alloc_one
PATCH 1/1 m68k: fix kunmap usage in pte_alloc_one
Subject: [PATCH] m68k: avoid pgprot_noncached redefinition
From: Heiko Carstens <[email protected]>
Compiling m68k with defconfig gives a lot of these warnings:
In file included from /home2/heicarst/linux-2.6/arch/m68k/include/asm/pgalloc.h:13,
from arch/m68k/kernel/dma.c:15:
arch/m68k/include/asm/motorola_pgalloc.h: In function 'pte_alloc_one':arch/m68k/include/asm/motorola_pgalloc.h:44: warning: passing argument 1 of 'kunmap' from incompatible pointer type
kunmap wants a page not a pte.
--- arch/m68k/include/asm/motorola_pgalloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/include/asm/motorola_pgalloc.h +1 -1
@@ -41,7 +41,7 @@ static inline pgtable_t pte_alloc_one(stflush_tlb_kernel_page (pte);nocache_page (pte); } -kunmap (pte); +kunmap (page);pgtable_page_ctor (page);return page; }
Geert Uytterhoeven
maintainerQuoted 4 lines · Heiko Carstens
Subject: [PATCH] m68k: avoid
pgprot_noncachedredefinitionFrom: Heiko Carstens <[email protected]>
Quoted 8 lines
Compiling m68k with defconfig gives a lot of these warnings:
In file included from /home2/heicarst/linux-2.6/arch/m68k/include/asm/pgalloc.h:13,
fromarch/m68k/kernel/dma.c:15:arch/m68k/include/asm/motorola_pgalloc.h: In function 'pte_alloc_one':arch/m68k/include/asm/motorola_pgalloc.h:44: warning: passing argument 1 of 'kunmap' from incompatible pointer typekunmap wants a page not a pte.
Thanks, but Linus has just pulled the fix last night.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds