]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/setup: Add decompressor_handled_param() wrapper
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 7 Feb 2025 14:49:10 +0000 (15:49 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:18:08 +0000 (17:18 +0100)
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>
arch/s390/kernel/early.c

index 081f67abe05ea371d7a09d181025f0435a8d310d..8d0291c2b68c6a521e1462cf620beeace5ccd16c 100644 (file)
 #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);