Building xen on arm64 with Clang would fail due to an implicit
cast from char * to __uptr.
Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
Reviewed-by: Oleksii Moisieiev <oleksii_moisieiev@epam.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Approved-by: Simon Kuenzer <simon@unikraft.io>
GitHub-Closes: #1518
UK_ASSERT(bi);
- bi->cmdline = CONFIG_UK_NAME;
+ bi->cmdline = (__uptr)CONFIG_UK_NAME;
bi->cmdline_len = sizeof(CONFIG_UK_NAME) - 1;
fdtchosen = fdt_path_offset(HYPERVISOR_dtb, "/chosen");
fdtcmdline = fdt_getprop(HYPERVISOR_dtb, fdtchosen, "bootargs",
&len);
if (fdtcmdline) {
- bi->cmdline = fdtcmdline;
+ bi->cmdline = (__uptr)fdtcmdline;
bi->cmdline_len = len;
}
}