need to change things around a little to prevent asm/tlb.h from breaking
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 27 Feb 2005 23:31:17 +0000 (23:31 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 27 Feb 2005 23:31:17 +0000 (23:31 +0000)
compilation against debian 2.4.27 kernel headers

include/linux/mm.h

index 39ed289b114eeef804abdfe6eeb013d28e9f5add..aabaccfcdc453eee4e00741b946e548c3c377561 100644 (file)
 #define VM_OFFSET(a)   ((a)->vm_pgoff * PAGE_SIZE)
 #endif
 
+#include_next <linux/mm.h>
+
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,10) \
                          && LINUX_VERSION_CODE < KERNEL_VERSION(2,5,3)
+#include <asm/pgalloc.h>
 #include <asm/tlb.h>   /* look for tlb_vma() macro for "statm" patch */
 #endif
 
@@ -25,8 +28,6 @@
 #define REMAP_PAGE_RANGE(a,b,c,d,e) remap_page_range(a,b,c,d,e)
 #endif
 
-#include_next <linux/mm.h>
-
 #endif /* _COMPAT_MM_H */