diff --git a/bitops.h b/bitops.h index 323c571..7f30b06 100644 --- a/bitops.h +++ b/bitops.h @@ -65,6 +65,9 @@ static inline unsigned long hweight_long(unsigned long w) } #define BITOP_WORD(nr) ((nr) / BITS_PER_LONG) +#ifndef __always_inline +#define __always_inline inline __attribute__((always_inline)) +#endif /** * __ffs - find first bit in word. diff --git a/kerncompat.h b/kerncompat.h index 1fc2b34..e7d3ca5 100644 --- a/kerncompat.h +++ b/kerncompat.h @@ -28,6 +28,7 @@ #include #include #include +#include #ifndef READ #define READ 0