Commit 082ff0a9991dcea958785115fbba6dddd0dc280a

Authored by Geert Uytterhoeven
Committed by Linus Torvalds
1 parent eb0a90b497

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

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -191,7 +191,7 @@
191 191 address);
192 192 if (!IS_ERR(pte)) {
193 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 195 pteval = ptep_clear_flush(vma, address, pte);
196 196 BUG_ON(pte_dirty(pteval));
197 197 pte_unmap(pte);