diff options
-rw-r--r-- | include/linux/log2.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/log2.h b/include/linux/log2.h index 1f977d60..96f62458 100644 --- a/include/linux/log2.h +++ b/include/linux/log2.h @@ -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 |