fix for musl and non-x86 archs

This commit is contained in:
Brett Holman 2021-07-22 17:30:21 -06:00 committed by Kent Overstreet
parent cb09c48a26
commit 308d7adcc5

View File

@ -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)