[PATCH] erofs-utils: loosen hash_64 compile restriction

Daeho Jeong daeho43 at gmail.com
Fri Dec 3 06:09:23 AEDT 2021


From: Daeho Jeong <daehojeong at google.com>

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 <daehojeong at google.com>
---
 include/erofs/hashtable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/erofs/hashtable.h b/include/erofs/hashtable.h
index 90eb84e..d425f0c 100644
--- a/include/erofs/hashtable.h
+++ b/include/erofs/hashtable.h
@@ -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 */
-- 
2.34.0.384.gca35af8252-goog



More information about the Linux-erofs mailing list