projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd913c
)
add virt_to_page
author
David Schleef
<ds@schleef.org>
Thu, 21 Nov 2002 04:26:06 +0000
(
04:26
+0000)
committer
David Schleef
<ds@schleef.org>
Thu, 21 Nov 2002 04:26:06 +0000
(
04:26
+0000)
include/asm/page.h
patch
|
blob
|
history
diff --git
a/include/asm/page.h
b/include/asm/page.h
index 00caf1909b6f2572e2cd0ae1f1c96d5c1a866dee..16805f19c955f678585ed007c499e8faca3feedd 100644
(file)
--- a/
include/asm/page.h
+++ b/
include/asm/page.h
@@
-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)