kernel_optimize_test/drivers/tty/hvc
Randy Dunlap 96038b1cf4 tty: hvc: fix return value of __setup handler
[ Upstream commit 53819a0d97aace1425bb042829e3446952a9e8a9 ]

__setup() handlers should return 1 to indicate that the boot option
has been handled or 0 to indicate that it was not handled.
Add a pr_warn() message if the option value is invalid and then
always return 1.

Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
Fixes: 86b40567b9 ("tty: replace strict_strtoul() with kstrtoul()")
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Julian Wiedmann <jwi@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20220308024228.20477-1-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:28 +02:00
..
hvc_console.c
hvc_console.h
hvc_dcc.c
hvc_irq.c
hvc_iucv.c tty: hvc: fix return value of __setup handler 2022-04-08 14:40:28 +02:00
hvc_opal.c
hvc_riscv_sbi.c
hvc_rtas.c
hvc_udbg.c
hvc_vio.c
hvc_xen.c xen/console: harden hvc_xen against event channel storms 2021-12-22 09:30:59 +01:00
hvcs.c
hvsi_lib.c
hvsi.c
Kconfig
Makefile