]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/vfscore: Cast initrd vbase to (void *)
authorSimon Kuenzer <simon@unikraft.io>
Fri, 3 Feb 2023 19:40:05 +0000 (20:40 +0100)
committerUnikraft <monkey@unikraft.io>
Sat, 4 Feb 2023 02:58:37 +0000 (02:58 +0000)
commit9910feb8c3efea57f3de284b0b0a28f0facbbbd6
tree70841a0d1946759c06202f2049791dd4b5924b5e
parente742f9d1da1008be8f35b51247b5182ab2b0eae4
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 <simon@unikraft.io>
Reviewed-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Approved-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #744
lib/vfscore/rootfs.c