lkml.org 
[lkml]   [2009]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [RFC][PATCH 33/35] asm-generic/ptemap.h for HIGHPTE users

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

-Tony


\
 
 \ /
  Last update: 2009-05-01 19:55    [W:0.121 / U:0.192 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site