Re: [PATCH v2 1/2] alpha: parse early parameters before reserving contiguous memory

From: Matt Turner

Date: Sat Nov 14 2026 - 12:16:24 EST


On Sat, Nov 14, 2026 at 4:53 AM Magnus Lindholm <linmag7@xxxxxxxxx> wrote:
> diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c
> index 9fda01b73b18..c7b7ebcc47b6 100644
> --- a/arch/alpha/kernel/setup.c
> +++ b/arch/alpha/kernel/setup.c
> @@ -579,6 +579,9 @@ setup_arch(char **cmdline_p)
> if (alpha_mv.init_arch)
> alpha_mv.init_arch();
>
> + /* Parse early options before reserving memory for DMA CMA. */
> + parse_early_param();
> +

Once your jump label series lands, this will run before start_kernel()
calls jump_label_init(), and any early_param handler that flips a static
key will trip the "used before call to jump_label_init" warning.
threadirqs and randomize_kstack_offset= both do that. We don't select
IRQ_FORCED_THREADING or HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET today, so
nothing breaks yet, but arm64 and riscv both call jump_label_init()
right before parse_early_param() in setup_arch() for this reason. It
returns early if called again, so it's safe to add here. Whichever of
the two series goes in second should probably do that.

Reviewed-by: Matt Turner <mattst88@xxxxxxxxx>