On 10.10.2024 17:30, Oleksii Kurochko wrote:
> --- a/xen/arch/riscv/setup.c
> +++ b/xen/arch/riscv/setup.c
> @@ -50,6 +50,8 @@ void __init noreturn start_xen(unsigned long bootcpu_id,
> _end - _start, false) )
> panic("Failed to add BOOTMOD_XEN\n");
>
> + BUG_ON(!boot_fdt_info(device_tree_flattened, dtb_addr));
We generally aim at avoiding side effects in BUG_ON() (or ASSERT()). With
if (!boot_fdt_info(device_tree_flattened, dtb_addr))
BUG();
Acked-by: Jan Beulich <[email protected]>
I can make the adjustment while committing, if desired.
Jan