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 <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Heiko Carstens
2025-02-07 15:49:10 +01:00
committed by Vasily Gorbik
parent 841f35a08d
commit 66ec751719

View File

@@ -38,12 +38,14 @@
#include <asm/boot_data.h>
#include "entry.h"
#define decompressor_handled_param(param) \
static int __init ignore_decompressor_param_##param(char *s) \
#define __decompressor_handled_param(func, param) \
static int __init ignore_decompressor_param_##func(char *s) \
{ \
return 0; \
} \
early_param(#param, ignore_decompressor_param_##param)
early_param(#param, ignore_decompressor_param_##func)
#define decompressor_handled_param(param) __decompressor_handled_param(param, param)
decompressor_handled_param(mem);
decompressor_handled_param(vmalloc);