All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "ARM: 9187/1: JIVE: fix return value of __setup handler" has been added to the 5.16-stable tree
@ 2022-04-04 10:07 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2022-04-04 10:07 UTC (permalink / raw)
  To: alim.akhtar, ben-linux, gregkh, krzk, linux-arm-kernel, patches,
	rdunlap, rmk+kernel
  Cc: stable-commits


This is a note to let you know that I've just added the patch titled

    ARM: 9187/1: JIVE: fix return value of __setup handler

to the 5.16-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm-9187-1-jive-fix-return-value-of-__setup-handler.patch
and it can be found in the queue-5.16 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


From 8b2360c7157b462c4870d447d1e65d30ef31f9aa Mon Sep 17 00:00:00 2001
From: Randy Dunlap <rdunlap@infradead.org>
Date: Sat, 12 Mar 2022 07:36:09 +0100
Subject: ARM: 9187/1: JIVE: fix return value of __setup handler

From: Randy Dunlap <rdunlap@infradead.org>

commit 8b2360c7157b462c4870d447d1e65d30ef31f9aa upstream.

__setup() handlers should return 1 to obsolete_checksetup() in
init/main.c to indicate that the boot option has been handled.
A return of 0 causes the boot option/value to be listed as an Unknown
kernel parameter and added to init's (limited) argument or environment
strings. Also, error return codes don't mean anything to
obsolete_checksetup() -- only non-zero (usually 1) or zero.
So return 1 from jive_mtdset().

Fixes: 9db829f485c5 ("[ARM] JIVE: Initial machine support for Logitech Jive")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Alim Akhtar <alim.akhtar@samsung.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-samsung-soc@vger.kernel.org
Cc: patches@armlinux.org.uk
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 arch/arm/mach-s3c/mach-jive.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/arch/arm/mach-s3c/mach-jive.c
+++ b/arch/arm/mach-s3c/mach-jive.c
@@ -236,11 +236,11 @@ static int __init jive_mtdset(char *opti
 	unsigned long set;
 
 	if (options == NULL || options[0] == '\0')
-		return 0;
+		return 1;
 
 	if (kstrtoul(options, 10, &set)) {
 		printk(KERN_ERR "failed to parse mtdset=%s\n", options);
-		return 0;
+		return 1;
 	}
 
 	switch (set) {
@@ -255,7 +255,7 @@ static int __init jive_mtdset(char *opti
 		       "using default.", set);
 	}
 
-	return 0;
+	return 1;
 }
 
 /* parse the mtdset= option given to the kernel command line */


Patches currently in stable-queue which might be from rdunlap@infradead.org are

queue-5.16/tomoyo-fix-__setup-handlers-return-values.patch
queue-5.16/evm-fix-the-evm-__setup-handler-return-value.patch
queue-5.16/asoc-max98927-add-missing-header-file.patch
queue-5.16/mm-mmap-return-1-from-stack_guard_gap-__setup-handler.patch
queue-5.16/tty-hvc-fix-return-value-of-__setup-handler.patch
queue-5.16/pm-suspend-fix-return-value-of-__setup-handler.patch
queue-5.16/clocksource-acpi_pm-fix-return-value-of-__setup-hand.patch
queue-5.16/mips-rb532-fix-return-value-of-__setup-handler.patch
queue-5.16/acpi-apei-fix-return-value-of-__setup-handlers.patch
queue-5.16/dma-debug-fix-return-value-of-__setup-handlers.patch
queue-5.16/m68k-coldfire-device.c-only-build-for-mcf_edma-when-.patch
queue-5.16/printk-fix-return-value-of-printk.devkmsg-__setup-ha.patch
queue-5.16/mips-dec-honor-config_mips_fp_support-n.patch
queue-5.16/net-sparx5-uses-depends-on-bridge-or-bridge.patch
queue-5.16/net-sparx5-depends-on-ptp_1588_clock_optional.patch
queue-5.16/pm-hibernate-fix-__setup-handler-error-handling.patch
queue-5.16/kgdboc-fix-return-value-of-__setup-handler.patch
queue-5.16/mm-memcontrol-return-1-from-cgroup.memory-__setup-handler.patch
queue-5.16/driver-core-dd-fix-return-value-of-__setup-handler.patch
queue-5.16/kgdbts-fix-return-value-of-__setup-handler.patch
queue-5.16/mm-usercopy-return-1-from-hardened_usercopy-__setup-handler.patch
queue-5.16/arm-9187-1-jive-fix-return-value-of-__setup-handler.patch

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-04 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 10:07 Patch "ARM: 9187/1: JIVE: fix return value of __setup handler" has been added to the 5.16-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.