mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
include/linux/log2.h: define PAGE_SHIFT when needed
This commit is contained in:
parent
3217fffd09
commit
c725c69d77
@ -12,7 +12,13 @@
|
||||
#ifndef _TOOLS_LINUX_LOG2_H
|
||||
#define _TOOLS_LINUX_LOG2_H
|
||||
|
||||
#include <limits.h>
|
||||
#ifndef PAGE_SHIFT
|
||||
#define PAGE_SHIFT ilog2(PAGE_SIZE)
|
||||
#endif
|
||||
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/compiler.h>
|
||||
|
||||
/*
|
||||
* deal with unrepresentable constant logarithms
|
||||
|
Loading…
Reference in New Issue
Block a user