summaryrefslogtreecommitdiff
path: root/net/ceph/crush/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ceph/crush/hash.c')
-rw-r--r--net/ceph/crush/hash.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/ceph/crush/hash.c b/net/ceph/crush/hash.c
index 5bb63e37a8a1..fe79f6d2d0db 100644
--- a/net/ceph/crush/hash.c
+++ b/net/ceph/crush/hash.c
@@ -1,10 +1,13 @@
-
-#include <linux/types.h>
-#include <linux/crush/hash.h>
+// SPDX-License-Identifier: GPL-2.0
+#ifdef __KERNEL__
+# include <linux/crush/hash.h>
+#else
+# include "hash.h"
+#endif
/*
* Robert Jenkins' function for mixing 32-bit values
- * http://burtleburtle.net/bob/hash/evahash.html
+ * https://burtleburtle.net/bob/hash/evahash.html
* a, b = random bits, c = input and output
*/
#define crush_hashmix(a, b, c) do { \