2.6.12-rc3-mm2: ppc pte_offset_map()
Hugh Dickins
hugh at veritas.com
Mon May 2 20:14:45 EST 2005
On Sun, 1 May 2005, Andrew Morton wrote:
> Jesper Juhl <juhl-lkml at dif.dk> wrote:
> >
> > --- linux-2.6.12-rc3-mm2-orig/fs/proc/task_mmu.c 2005-05-01 04:04:25.000000000 +0200
> > +++ linux-2.6.12-rc3-mm2/fs/proc/task_mmu.c 2005-05-01 17:49:14.000000000 +0200
> > @@ -2,6 +2,7 @@
> > #include <linux/hugetlb.h>
> > #include <linux/mount.h>
> > #include <linux/seq_file.h>
> > +#include <linux/highmem.h>
> >
> > #include <asm/elf.h>
> > #include <asm/uaccess.h>
> > @@ -204,7 +205,7 @@ static void smaps_pte_range(pmd_t *pmd,
> > }
> > }
> > } while (address < end);
> > - pte_unmap(pte);
> > + pte_unmap((void *)pte);
> > }
>
> Should be
>
> pte_unmap(ptep);
Almost. Should be
pte_unmap(ptep - 1);
More information about the Linuxppc-dev
mailing list