summaryrefslogtreecommitdiff
path: root/include/linux/hash.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2022-02-18 13:30:38 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-02-18 13:30:38 -0800
commit986c6f7c3fc855032f3457a5a1b7fbcc09c375bb (patch)
treecf5b08b5ae405ae04e0c1c728531972934d3eed0 /include/linux/hash.h
parente511fc58071ab9b72d25667e5957cf895eb53cdf (diff)
parent754e0b0e35608ed5206d6a67a791563c631cec07 (diff)
Merge tag 'v5.17-rc4' into next
Sync up with mainline to get the latest changes in HID subsystem.
Diffstat (limited to 'include/linux/hash.h')
-rw-r--r--include/linux/hash.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/hash.h b/include/linux/hash.h
index ad6fa21d977b..38edaa08f862 100644
--- a/include/linux/hash.h
+++ b/include/linux/hash.h
@@ -62,10 +62,7 @@ static inline u32 __hash_32_generic(u32 val)
return val * GOLDEN_RATIO_32;
}
-#ifndef HAVE_ARCH_HASH_32
-#define hash_32 hash_32_generic
-#endif
-static inline u32 hash_32_generic(u32 val, unsigned int bits)
+static inline u32 hash_32(u32 val, unsigned int bits)
{
/* High bits are more random, so use them. */
return __hash_32(val) >> (32 - bits);