From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] hugemmap36: Fix compilation on alpine
Date: Thu, 6 Aug 2026 09:06:25 +0200 [thread overview]
Message-ID: <20260806070625.19475-1-chrubis@suse.cz> (raw)
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 <chrubis@suse.cz>
---
testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c
index b48a34f59..5f0d70a05 100644
--- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c
+++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c
@@ -21,7 +21,7 @@
*/
#define _GNU_SOURCE
-#define FOURGIG ((off64_t)0x100000000ULL)
+#define FOURGIG ((int64_t)0x100000000ULL)
#define MNTPOINT "hugetlbfs/"
#include <signal.h>
--
2.54.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2026-08-06 7:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 7:06 Cyril Hrubis [this message]
2026-08-06 7:41 ` [LTP] hugemmap36: Fix compilation on alpine linuxtestproject.agent
2026-08-06 8:01 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-08-06 8:35 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260806070625.19475-1-chrubis@suse.cz \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox