X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fasm-arm%2Fpage.h;h=c86f68ee65118b6c7cdd2fec34ee7509abbaae46;hb=f3aafa6c2535d36542a6dfc8647cd2fdb5999648;hp=b721270b9986c15d6dca566ec4d0dc65b6cb2e9d;hpb=4a3381feb823e06c8e2da7e283c17b0b6fdbddcf;p=firefly-linux-kernel-4.4.55.git diff --git a/include/asm-arm/page.h b/include/asm-arm/page.h index b721270b9986..c86f68ee6511 100644 --- a/include/asm-arm/page.h +++ b/include/asm-arm/page.h @@ -10,14 +10,11 @@ #ifndef _ASMARM_PAGE_H #define _ASMARM_PAGE_H - /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT 12 #define PAGE_SIZE (1UL << PAGE_SHIFT) #define PAGE_MASK (~(PAGE_SIZE-1)) -#ifdef __KERNEL__ - /* to align the pointer to the (next) page boundary */ #define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) @@ -174,8 +171,7 @@ typedef unsigned long pgprot_t; #endif /* STRICT_MM_TYPECHECKS */ -/* the upper-most page table pointer */ -extern pmd_t *top_pmd; +typedef struct page *pgtable_t; #endif /* CONFIG_MMU */ @@ -195,6 +191,4 @@ extern pmd_t *top_pmd; #include -#endif /* __KERNEL__ */ - #endif