Skip to contentSkip to conversation

erofs-utils: loosen hash_64 compile restriction

PATCH In review Daeho Jeong 2 participants 2 messages Dec 2, 2021 – Dec 3, 2021

lore
Share & tools
lore
#0 lore raw

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]

---
 include/erofs/hashtable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/erofs/hashtable.h +1 -1
index 90eb84e..d425f0c 100644
@@ -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