summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/crush/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/crush/hash.h')
-rw-r--r--kernel/include/linux/crush/hash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/include/linux/crush/hash.h b/kernel/include/linux/crush/hash.h
index 91e884230..d1d902582 100644
--- a/kernel/include/linux/crush/hash.h
+++ b/kernel/include/linux/crush/hash.h
@@ -1,6 +1,12 @@
#ifndef CEPH_CRUSH_HASH_H
#define CEPH_CRUSH_HASH_H
+#ifdef __KERNEL__
+# include <linux/types.h>
+#else
+# include "crush_compat.h"
+#endif
+
#define CRUSH_HASH_RJENKINS1 0
#define CRUSH_HASH_DEFAULT CRUSH_HASH_RJENKINS1