Skip to content

Commit 66ec751

Browse files
hcahcaVasily Gorbik
authored andcommitted
s390/setup: Add decompressor_handled_param() wrapper
Make decompressor_handled_param() a wrapper for __decompressor_handled_param(). __decompressor_handled_param() now takes two parameters: a function name and a parameter name, which do not necessarily match. This allows to use characters like "-", which are not allowed in function names, for command line parameters which are handled by the decompressor and should be ignored by the kernel. Reviewed-by: Vasily Gorbik <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 841f35a commit 66ec751

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

arch/s390/kernel/early.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@
3838
#include <asm/boot_data.h>
3939
#include "entry.h"
4040

41-
#define decompressor_handled_param(param) \
42-
static int __init ignore_decompressor_param_##param(char *s) \
41+
#define __decompressor_handled_param(func, param) \
42+
static int __init ignore_decompressor_param_##func(char *s) \
4343
{ \
4444
return 0; \
4545
} \
46-
early_param(#param, ignore_decompressor_param_##param)
46+
early_param(#param, ignore_decompressor_param_##func)
47+
48+
#define decompressor_handled_param(param) __decompressor_handled_param(param, param)
4749

4850
decompressor_handled_param(mem);
4951
decompressor_handled_param(vmalloc);

0 commit comments

Comments
 (0)