Skip to content

Commit 622021c

Browse files
svens-s390Vasily Gorbik
authored andcommitted
s390: make command line configurable
Allow to configure the command line to an arbitrary length, with a default of 4096 bytes. Also remove COMMAND_LINE_SIZE from include/uapi/asm/setup.h as this is dynamic now and doesn't tell anything about the command line size limitations of a new kernel that might be loaded. Signed-off-by: Sven Schnelle <[email protected]> Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 5ecb2da commit 622021c

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

arch/s390/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,14 @@ endchoice
438438
config 64BIT
439439
def_bool y
440440

441+
config COMMAND_LINE_SIZE
442+
int "Maximum size of kernel command line"
443+
default 4096
444+
range 896 1048576
445+
help
446+
This allows you to specify the maximum length of the kernel command
447+
line.
448+
441449
config COMPAT
442450
def_bool y
443451
prompt "Kernel support for 31 bit emulation"

arch/s390/include/asm/setup.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#define PARMAREA 0x10400
1414

15+
#define COMMAND_LINE_SIZE CONFIG_COMMAND_LINE_SIZE
1516
/*
1617
* Machine features detected in early.c
1718
*/

arch/s390/include/uapi/asm/setup.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
11
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2-
/*
3-
* S390 version
4-
* Copyright IBM Corp. 1999, 2010
5-
*/
6-
7-
#ifndef _UAPI_ASM_S390_SETUP_H
8-
#define _UAPI_ASM_S390_SETUP_H
9-
10-
#define COMMAND_LINE_SIZE 4096
11-
12-
#endif /* _UAPI_ASM_S390_SETUP_H */

0 commit comments

Comments
 (0)