Skip to content

Commit 8ee0d2f

Browse files
Vasily Gorbikhcahca
authored andcommitted
s390/setup: do not complain about parameters handled in decompressor
Currently there are several kernel command line parameters which are only parsed and handled in decompressor and not known to the kernel. This leads to the following error message during kernel boot: Unknown kernel command line parameters "mem=3G nokaslr", will be passed to user space. To avoid confusion, register those parameters with an empty stub so that kernel does not complain about them. Reported-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent f3dd0c5 commit 8ee0d2f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

arch/s390/kernel/early.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@
3636

3737
int __bootdata(is_full_image);
3838

39+
#define decompressor_handled_param(param) \
40+
static int __init ignore_decompressor_param_##param(char *s) \
41+
{ \
42+
return 0; \
43+
} \
44+
early_param(#param, ignore_decompressor_param_##param)
45+
46+
decompressor_handled_param(mem);
47+
decompressor_handled_param(vmalloc);
48+
decompressor_handled_param(dfltcc);
49+
decompressor_handled_param(noexec);
50+
decompressor_handled_param(facilities);
51+
decompressor_handled_param(nokaslr);
52+
#if IS_ENABLED(CONFIG_KVM)
53+
decompressor_handled_param(prot_virt);
54+
#endif
55+
3956
static void __init reset_tod_clock(void)
4057
{
4158
union tod_clock clk;

0 commit comments

Comments
 (0)