From 673cfddf6e05749c8bdf044140415fcefd5e9546 Mon Sep 17 00:00:00 2001 From: Heiko Carstens Date: Fri, 11 Aug 2017 15:54:16 +0200 Subject: [PATCH] s390: fix 'novx' early parameter handling Specifying the 'novx' kernel parameter always results in a warning: Malformed early option 'novx' The reason for this is that the novx early parameter handling function always returns a non-zero value which means that an error occurred. Fix this and return the correct zero value instead. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- arch/s390/kernel/early.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index added67..ca8cd80 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c @@ -420,7 +420,7 @@ static int __init disable_vector_extension(char *str) { S390_lowcore.machine_flags &= ~MACHINE_FLAG_VX; __ctl_clear_bit(0, 17); - return 1; + return 0; } early_param("novx", disable_vector_extension); -- 2.7.4