add virt_to_page
authorDavid Schleef <ds@schleef.org>
Thu, 21 Nov 2002 04:26:06 +0000 (04:26 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 21 Nov 2002 04:26:06 +0000 (04:26 +0000)
include/asm/page.h

index 00caf1909b6f2572e2cd0ae1f1c96d5c1a866dee..16805f19c955f678585ed007c499e8faca3feedd 100644 (file)
@@ -8,6 +8,10 @@
 #include <linux/version.h>
 #include_next <asm/page.h>
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,3,0)
+#define virt_to_page(addr) MAP_NR(addr)
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,2,1)
 /* Pure 2^n version of get_order */
 static __inline__ int get_order(unsigned long size)