X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-m68k%2Fpage.h;h=a34b8bad784703b1597c5e15e5f655e3a05a7a3e;hb=4ce105d30e08fb8a1783c55a0e48aa3fa200c455;hp=1431ea0b59e01e5f31c4c075893bf2a4397f55b3;hpb=6869ce1c145aaea9f9f8eb8623a261d316b0cd19;p=linux-2.6-omap-h63xx.git diff --git a/include/asm-m68k/page.h b/include/asm-m68k/page.h index 1431ea0b59e..a34b8bad784 100644 --- a/include/asm-m68k/page.h +++ b/include/asm-m68k/page.h @@ -1,9 +1,6 @@ #ifndef _M68K_PAGE_H #define _M68K_PAGE_H - -#ifdef __KERNEL__ - #include /* PAGE_SHIFT determines the page size */ @@ -94,6 +91,7 @@ typedef struct { unsigned long pte; } pte_t; typedef struct { unsigned long pmd[16]; } pmd_t; typedef struct { unsigned long pgd; } pgd_t; typedef struct { unsigned long pgprot; } pgprot_t; +typedef struct page *pgtable_t; #define pte_val(x) ((x).pte) #define pmd_val(x) ((&x)->pmd[0]) @@ -105,9 +103,6 @@ typedef struct { unsigned long pgprot; } pgprot_t; #define __pgd(x) ((pgd_t) { (x) } ) #define __pgprot(x) ((pgprot_t) { (x) } ) -/* to align the pointer to the (next) page boundary */ -#define PAGE_ALIGN(addr) (((addr)+PAGE_SIZE-1)&PAGE_MASK) - #endif /* !__ASSEMBLY__ */ #include @@ -230,6 +225,4 @@ static inline __attribute_const__ int __virt_to_node_shift(void) #include -#endif /* __KERNEL__ */ - #endif /* _M68K_PAGE_H */