summaryrefslogtreecommitdiff
path: root/include/linux/page.h
diff options
context:
space:
mode:
authorBrett Holman <bholman.devel@gmail.com>2021-07-22 17:30:21 -0600
committerKent Overstreet <kent.overstreet@gmail.com>2021-07-24 20:16:41 -0400
commit308d7adcc5ded346e86a2e9c6419bc3b6b5f3e55 (patch)
tree71362e7621ef32512bb02d1e514d06a959c3706d /include/linux/page.h
parentcb09c48a26d9ecba4c13ddf4b7f4d88e246b56d9 (diff)
fix for musl and non-x86 archs
Diffstat (limited to 'include/linux/page.h')
-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)