erofs-utils: loosen hash_64 compile restriction
PATCH 1/1 erofs-utils: loosen hash_64 compile restriction
From: Daeho Jeong <[email protected]>
We've got the below "unused function" warning for 32bit compilation. So, fixed it.
error: unused function 'hash_64' [-Werror,-Wunused-function]
Signed-off-by Daeho Jeong <[email protected]>
--- include/erofs/hashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/erofs/hashtable.h +1 -1
@@ -251,7 +251,7 @@ static inline u32 hash_32(u32 val, unsigned int bits)return __hash_32 (val) >> (32 - bits); } -static __always_inline u32 hash_64(u64 val, unsigned int bits) +static inline u32 hash_64 (u64 val,unsigned int bits) {#if BITS_PER_LONG ==64 /* 64x64-bit multiply is efficient on all 64-bit processors */
Signature · 1 line
2.34.0.384.gca35af8252-goog
Quoted 8 lines · Daeho Jeong
From: Daeho Jeong <[email protected]>
We've got the below "unused function" warning for 32bit compilation. So, fixed it.
error: unused function '
hash_64' [-Werror,-Wunused-function]Signed-off-by Daeho Jeong <[email protected]>
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang