arm64: boot: secondary: add intermediate ptr cast

Fix warning regarding direct cast from function address to integer
value.
This commit is contained in:
Matthew Leach
2025-11-22 12:40:35 +00:00
parent 30eb4fc794
commit 16fc3e47ff

View File

@@ -104,7 +104,7 @@ fn find_enable_method(node: &fdt_parser::Node<'static>) -> Result<EntryMethod> {
fn prepare_for_secondary_entry() -> Result<(PA, PA)> {
static mut SECONDARY_BOOT_CTX: MaybeUninit<SecondaryBootInfo> = MaybeUninit::uninit();
let entry_fn = kfunc_pa!(do_secondary_start as usize);
let entry_fn = kfunc_pa!(do_secondary_start as *const () as usize);
let boot_stack = ksym_pa!(__boot_stack);
let ctx = ksym_pa!(SECONDARY_BOOT_CTX);