Skip to contentSkip to conversation

hugemmap36: Fix compilation on alpine

PATCH In review Cyril Hrubis 3 participants 4 messages Aug 6

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hugemmap36: Fix compilation on alpine

Use int64_t instead of off64_t that is not defined on musl libc.

Fixes ae1b3655ed5da (hugemmap36: Migrate the libhugetlbfs/testcases/truncate_above_4GB.c tess)
---
 testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c +1 -1
index b48a34f59..5f0d70a05 100644
@@ -21,7 +21,7 @@
  */
 
 #define _GNU_SOURCE
-#define FOURGIG ((off64_t)0x100000000ULL)
+#define FOURGIG ((int64_t)0x100000000ULL)
 #define MNTPOINT "hugetlbfs/"
 
 #include <signal.h>
Signature · 5 lines
2.54.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Cyril,

Quoted 1 line · Cyril Hrubis

hugemmap36: Fix compilation on alpine

Verdict - Reviewed

---
Note:

The agent can sometimes produce false positives although often its findings are genuine. If you find issues with the review, please comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw

Hi!
Thanks for the review, pushed.

Signature · 5 lines
Cyril Hrubis
[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp