From 9910feb8c3efea57f3de284b0b0a28f0facbbbd6 Mon Sep 17 00:00:00 2001 From: Simon Kuenzer Date: Fri, 3 Feb 2023 20:40:05 +0100 Subject: [PATCH] lib/vfscore: Cast initrd vbase to (void *) PR #722 (Boot code refactoring) introduced an update to `struct ukplat_memregion_desc` where the virtual base of a memory region is now specified as a __vaddr_t integer value. Since it is a virtual address we can cast it to (void *) to avoid build warnings in `lib/vfscore/rootfs.c`. Signed-off-by: Simon Kuenzer Reviewed-by: Marc Rittinghaus Approved-by: Marc Rittinghaus Tested-by: Unikraft CI GitHub-Closes: #744 --- lib/vfscore/rootfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vfscore/rootfs.c b/lib/vfscore/rootfs.c index 94a224132..75b90422e 100644 --- a/lib/vfscore/rootfs.c +++ b/lib/vfscore/rootfs.c @@ -104,9 +104,10 @@ static int vfscore_rootfs(void) } uk_pr_info("Extracting initrd @ %p (%"__PRIsz" bytes) to /...\n", - initrd->vbase, initrd->len); + (void *) initrd->vbase, initrd->len); - error = ukcpio_extract("/", initrd->vbase, initrd->len); + error = ukcpio_extract("/", (void *) initrd->vbase, + initrd->len); if (error != UKCPIO_SUCCESS) { uk_pr_crit("Failed to extract cpio archive to /: %d\n", error); -- 2.39.5