aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h
diff options
context:
space:
mode:
authorJames Simmons <uja.ornl@yahoo.com>2015-10-29 17:35:19 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-11-15 20:02:47 -0800
commit12550e0cab229fd24241e4950c075361aad76b27 (patch)
treec3743ba61c48b24aba83794ed77718895e4b361f /drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h
parentstaging: lustre: remove obsolete comment in libcfs_hash.h (diff)
downloadlinux-dev-12550e0cab229fd24241e4950c075361aad76b27.tar.xz
linux-dev-12550e0cab229fd24241e4950c075361aad76b27.zip
staging: lustre: move linux hash.h header to start of libcfs_hash.h
Minor style cleanup to put hash.h header to the top of the libcfs_hash.h file. Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h')
-rw-r--r--drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h b/drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h
index 4a78e6d8dc1f..2e0c89228013 100644
--- a/drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h
+++ b/drivers/staging/lustre/include/linux/libcfs/libcfs_hash.h
@@ -41,6 +41,9 @@
#ifndef __LIBCFS_HASH_H__
#define __LIBCFS_HASH_H__
+
+#include <linux/hash.h>
+
/*
* Knuth recommends primes in approximately golden ratio to the maximum
* integer representable by a machine word for multiplicative hashing.
@@ -56,8 +59,6 @@
/* 2^63 + 2^61 - 2^57 + 2^54 - 2^51 - 2^18 + 1 */
#define CFS_GOLDEN_RATIO_PRIME_64 0x9e37fffffffc0001ULL
-#include <linux/hash.h>
-
/** disable debug */
#define CFS_HASH_DEBUG_NONE 0
/** record hash depth and output to console when it's too deep,