From: David Schleef Date: Thu, 21 Nov 2002 04:26:06 +0000 (+0000) Subject: add virt_to_page X-Git-Tag: r0_7_66~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=53dd41ac94ca089d9adbb8d6d71131ad8e285be0;p=comedi.git add virt_to_page --- diff --git a/include/asm/page.h b/include/asm/page.h index 00caf190..16805f19 100644 --- a/include/asm/page.h +++ b/include/asm/page.h @@ -8,6 +8,10 @@ #include #include_next +#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)