summaryrefslogtreecommitdiffstats
path: root/include/linux/hash.h
diff options
context:
space:
mode:
authorAnton Vorontsov <anton@enomsg.org>2013-03-24 20:06:35 -0700
committerAnton Vorontsov <anton@enomsg.org>2013-03-24 20:06:35 -0700
commit6e997bb894beef128fcfe1679e0830f97dee6dc2 (patch)
tree078d95af4d30b5e3d5b1db18de215489b26e01ce /include/linux/hash.h
parentc6cc9fc9d42ec82da2c770f0bef1488dc467f29c (diff)
parent92413a9bee1299cedcc0e5cfbfbc6b42496fb817 (diff)
downloadcachepc-linux-6e997bb894beef128fcfe1679e0830f97dee6dc2.tar.gz
cachepc-linux-6e997bb894beef128fcfe1679e0830f97dee6dc2.zip
Merge branch 'urgent'
Conflicts: drivers/power/pm2301_charger.c
Diffstat (limited to 'include/linux/hash.h')
-rw-r--r--include/linux/hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/hash.h b/include/linux/hash.h
index 61c97ae22e01..f09a0ae4d858 100644
--- a/include/linux/hash.h
+++ b/include/linux/hash.h
@@ -15,6 +15,7 @@
*/
#include <asm/types.h>
+#include <linux/compiler.h>
/* 2^31 + 2^29 - 2^25 + 2^22 - 2^19 - 2^16 + 1 */
#define GOLDEN_RATIO_PRIME_32 0x9e370001UL
@@ -31,7 +32,7 @@
#error Wordsize not 32 or 64
#endif
-static inline u64 hash_64(u64 val, unsigned int bits)
+static __always_inline u64 hash_64(u64 val, unsigned int bits)
{
u64 hash = val;