summaryrefslogtreecommitdiffstats
path: root/main/btrfs-progs/includes.patch
blob: ae69dae4926e1de5ccf7a962bf95f0b4d730b0e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 <assert.h>
 #include <stddef.h>
 #include <linux/types.h>
+#include <linux/limits.h>
 
 #ifndef READ
 #define READ 0