hugemmap36: Fix compilation on alpine
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)
Signed-off-by Cyril Hrubis <[email protected]>
--- testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c +1 -1
@@ -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
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
Reviewed-by Andrea Cervesato <[email protected]>
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
Thanks for the review, pushed.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp