Can't rely on pte_offset_kernel being a macro on newer kernels.
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 6 Apr 2009 15:28:01 +0000 (15:28 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 6 Apr 2009 15:28:01 +0000 (15:28 +0000)
include/asm/pgtable.h

index 2335bf9e6e0fa87df7f366ec465b3bfa3adcc2d2..650e8f53ee6099d1607c843f946fdbbb72d37252 100644 (file)
@@ -28,7 +28,7 @@
 
 #include_next <asm/pgtable.h>
 
-#ifndef pte_offset_kernel
+#if !defined(pte_offset_kernel) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
 #define pte_offset_kernel(dir,address) pte_offset(dir,address)
 #endif