aboutsummaryrefslogtreecommitdiffstats
path: root/mm/filemap_xip.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2005-07-12 16:58:18 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-12 19:01:00 -0400
commit082ff0a9991dcea958785115fbba6dddd0dc280a (patch)
tree1d98a032b5757365d553dfe035662bb81c119e8b /mm/filemap_xip.c
parenteb0a90b4970d667e9ae9df538710f12b8e78e442 (diff)
[PATCH] mm/filemap_xip.c compilation fix
mm/filemap_xip.c: In function `__xip_unmap': mm/filemap_xip.c:194: request for member `pte' in something not a structure or union Apparently pte_pfn() takes a pte_t, not a pointer to a pte_t. From looking at asm/page.h, it seems to be the same on ia32 or ppc (iff STRICT_MM_TYPECHECKS is enabled, which is disabled by default on ppc). Acked-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/filemap_xip.c')
-rw-r--r--mm/filemap_xip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c
index 3b6e384b98a6..4553b2c5aab4 100644
--- a/mm/filemap_xip.c
+++ b/mm/filemap_xip.c
@@ -191,7 +191,7 @@ __xip_unmap (struct address_space * mapping,
191 address); 191 address);
192 if (!IS_ERR(pte)) { 192 if (!IS_ERR(pte)) {
193 /* Nuke the page table entry. */ 193 /* Nuke the page table entry. */
194 flush_cache_page(vma, address, pte_pfn(pte)); 194 flush_cache_page(vma, address, pte_pfn(*pte));
195 pteval = ptep_clear_flush(vma, address, pte); 195 pteval = ptep_clear_flush(vma, address, pte);
196 BUG_ON(pte_dirty(pteval)); 196 BUG_ON(pte_dirty(pteval));
197 pte_unmap(pte); 197 pte_unmap(pte);