[PATCH] riscv: unaligned: fix __setup handlers

Paul Walmsley pjw at kernel.org
Tue Nov 17 19:28:30 PST 2026


On Wed, 11 Nov 2026, Vladimir Kondratiev wrote:

> Returning -EINVAL from a __setup() callback cause invalid
> unaligned_scalar_speed= and unaligned_vector_speed=
> values to be treated as handled. obsolete_checksetup() treats any
> non-zero return value from setup_func() as success, so an unrecognized
> argument is silently accepted instead of being reported as an unknown
> boot option.
> 
> __setup() handlers return 0 on failure.
> 
> Fixes: aecb09e091dc ("riscv: Add parameter for skipping access speed tests")
> Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev at mobileye.com>

Thanks, queued for v7.4-rc with a stable@ cc.


- Paul



More information about the linux-riscv mailing list