summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linux/page.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/page.h b/include/linux/page.h
index 310b3eda..e2dda66d 100644
--- a/include/linux/page.h
+++ b/include/linux/page.h
@@ -12,6 +12,11 @@ struct page;
#endif
+#ifndef PAGE_SHIFT
+#define PAGE_SHIFT 12
+#endif
+
+
#define virt_to_page(p) \
((struct page *) (((unsigned long) (p)) & PAGE_MASK))
#define offset_in_page(p) ((unsigned long) (p) & ~PAGE_MASK)