Commit 27fc871b9631 for kernel

commit 27fc871b963183d9371cc838c1a543033d91357f
Author: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>
Date:   Wed Nov 11 12:41:21 2026 +0200

    riscv: unaligned: fix __setup handlers

    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@mobileye.com>
    Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
    Link: https://patch.msgid.link/20261111-fix-riscv-unaligned-v1-1-0722514fc1e4@mobileye.com
    Cc: stable@vger.kernel.org
    Signed-off-by: Paul Walmsley <pjw@kernel.org>

diff --git a/arch/riscv/kernel/unaligned_access_speed.c b/arch/riscv/kernel/unaligned_access_speed.c
index 67f1a0371659..323ccfcfbbb7 100644
--- a/arch/riscv/kernel/unaligned_access_speed.c
+++ b/arch/riscv/kernel/unaligned_access_speed.c
@@ -322,7 +322,7 @@ static int __init set_unaligned_scalar_speed_param(char *str)
 	else if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED]))
 		unaligned_scalar_speed_param = RISCV_HWPROBE_MISALIGNED_SCALAR_UNSUPPORTED;
 	else
-		return -EINVAL;
+		return 0;

 	return 1;
 }
@@ -337,7 +337,7 @@ static int __init set_unaligned_vector_speed_param(char *str)
 	else if (!strcmp(str, speed_str[RISCV_HWPROBE_MISALIGNED_VECTOR_UNSUPPORTED]))
 		unaligned_vector_speed_param = RISCV_HWPROBE_MISALIGNED_VECTOR_UNSUPPORTED;
 	else
-		return -EINVAL;
+		return 0;

 	return 1;
 }