mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
fix for musl and non-x86 archs
This commit is contained in:
parent
cb09c48a26
commit
308d7adcc5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user