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 +#ifndef PAGE_SHIFT +#define PAGE_SHIFT ilog2(PAGE_SIZE) +#endif + #include +#include /* * deal with unrepresentable constant logarithms