diff --git a/arch/m68k/include/asm/hash.h b/arch/m68k/include/asm/hash.h index 6d0d0c893f16..6dadf4937066 100644 --- a/arch/m68k/include/asm/hash.h +++ b/arch/m68k/include/asm/hash.h @@ -2,6 +2,8 @@ #ifndef _ASM_HASH_H #define _ASM_HASH_H +#include + /* * If CONFIG_M68000=y (original mc68000/010), this file is #included * to work around the lack of a MULU.L instruction. @@ -54,7 +56,7 @@ static inline u32 __attribute_const__ __hash_32(u32 x) : "=&d,d" (a), "=&r,r" (b) : "r,roi?" (x)); /* a+b = x*0x8647 */ - return ((u16)(x*0x61c8) << 16) + a + b; + return (lower_16_bits(x * 0x61c8) << 16) + a + b; } #endif /* _ASM_HASH_H */