lkml.org 
[lkml]   [2009]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: [RFC][PATCH 33/35] asm-generic/ptemap.h for HIGHPTE users
From
Date
On Fri, 2009-05-01 at 10:51 -0700, Luck, Tony wrote:
> > diff -puN include/asm-generic/ptemap.h~asm-generic-ptemap-h-highpte include/asm-generic/ptemap.h
> > +#ifdef CONFIG_HIGHPTE
> > +#include <asm/highmem.h>
> > +#define pte_offset_map(dir, address) \
> > + ((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE0) + pte_index(address))
> > +#define pte_offset_map_nested(dir, address) \
> > + ((pte_t *)kmap_atomic(pmd_page(*(dir)),KM_PTE1) + pte_index(address))
> > +#define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0)
> > +#define pte_unmap_nested(pte) kunmap_atomic((pte), KM_PTE1)
> > +
> > +#else /* !CONFIG_HIGHPTE */
> > +
> > #define pte_offset_map(dir,addr) pte_offset_kernel((dir),(addr))
> > #define pte_offset_map_nested(dir,addr) pte_offset_kernel((dir),(addr))
> > #define pte_unmap(pte) do { } while (0)
>
> You need to add a closing #endif here.

Fixed, thanks.

-- Dave



\
 
 \ /
  Last update: 2009-05-01 20:13    [W:0.064 / U:0.368 seconds]
©2003-2014 Jasper Spaans. Advertise on this site