[PATCH] erofs-utils: lib: fix get_unaligned_le64() return type

Vansh Choudhary <[email protected]>
Newsgroups org.ozlabs.lists.linux-erofs
Message-ID <[email protected]>
get_unaligned_le64() reads a 64-bit little-endian value but is
declared to return u32. Return u64 so callers do not lose the upper
32 bits.

Signed-off-by: Vansh Choudhary <[email protected]>
---
 include/erofs/defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/erofs/defs.h b/include/erofs/defs.h
index 71ca11b..37f349f 100644
--- a/include/erofs/defs.h
+++ b/include/erofs/defs.h
@@ -228,7 +228,7 @@ static inline void put_unaligned_le32(u32 val, void *p)
 	__put_unaligned_t(__le32, cpu_to_le32(val), p);
 }
 
-static inline u32 get_unaligned_le64(const void *p)
+static inline u64 get_unaligned_le64(const void *p)
 {
 	return le64_to_cpu(__get_unaligned_t(__le64, p));
 }
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.