aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/include
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2010-10-31 16:23:55 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-01-05 15:17:19 -0500
commit0eefed84fe9e1eb90f4b089ead95904306b23233 (patch)
treee937ef45698cb39d8986bdef335cf4ee7233a8c5 /arch/m68k/include
parent3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5 (diff)
m68k/sun3: Kill pte_unmap() warnings
Since commit 31c911329e048b715a1dfeaaf617be9430fd7f4e ("mm: check the argument of kunmap on architectures without highmem"), we get lots of warnings like arch/m68k/kernel/sys_m68k.c:508: warning: passing argument 1 of ‘kunmap’ from incompatible pointer type As m68k doesn't support highmem anyway, open code the calls to kmap() and kunmap() (the latter is a no-op) to kill the warnings, like is done on most other architectures without CONFIG_HIGHPTE. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Sam Creasey <sammy@sammy.net>
Diffstat (limited to 'arch/m68k/include')
-rw-r--r--arch/m68k/include/asm/sun3_pgtable.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/m68k/include/asm/sun3_pgtable.h b/arch/m68k/include/asm/sun3_pgtable.h
index cf5fad9b5250..f55aa04161e8 100644
--- a/arch/m68k/include/asm/sun3_pgtable.h
+++ b/arch/m68k/include/asm/sun3_pgtable.h
@@ -217,9 +217,8 @@ static inline pte_t pgoff_to_pte(unsigned off)
217/* Find an entry in the third-level pagetable. */ 217/* Find an entry in the third-level pagetable. */
218#define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1)) 218#define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
219#define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) + pte_index(address)) 219#define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) + pte_index(address))
220/* FIXME: should we bother with kmap() here? */ 220#define pte_offset_map(pmd, address) ((pte_t *)page_address(pmd_page(*pmd)) + pte_index(address))
221#define pte_offset_map(pmd, address) ((pte_t *)kmap(pmd_page(*pmd)) + pte_index(address)) 221#define pte_unmap(pte) do { } while (0)
222#define pte_unmap(pte) kunmap(pte)
223 222
224/* Macros to (de)construct the fake PTEs representing swap pages. */ 223/* Macros to (de)construct the fake PTEs representing swap pages. */
225#define __swp_type(x) ((x).val & 0x7F) 224#define __swp_type(x) ((x).val & 0x7F)