]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-m68k/page.h
PCI: fix pci_setup_device()'s sprinting into a const buffer
[linux-2.6-omap-h63xx.git] / include / asm-m68k / page.h
index 1431ea0b59e01e5f31c4c075893bf2a4397f55b3..880c2cbff8a681cc8619ef50f5b26cd5fd202433 100644 (file)
@@ -1,9 +1,6 @@
 #ifndef _M68K_PAGE_H
 #define _M68K_PAGE_H
 
-
-#ifdef __KERNEL__
-
 #include <linux/const.h>
 
 /* 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])
@@ -230,6 +228,4 @@ static inline __attribute_const__ int __virt_to_node_shift(void)
 
 #include <asm-generic/page.h>
 
-#endif /* __KERNEL__ */
-
 #endif /* _M68K_PAGE_H */