projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073a9ec
)
init: clean up early_param_on_off() macro
author
Masahiro Yamada
<masahiroy@kernel.org>
Fri, 26 Feb 2021 01:22:15 +0000
(17:22 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:05 +0000
(09:41 -0800)
Use early_param() to define early_param_on_off().
Link:
https://lkml.kernel.org/r/20210201041532.4025025-1-masahiroy@kernel.org
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Joe Perches <joe@perches.com>
Cc: Nick Desaulniers <ndesaulniers@gooogle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/init.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/init.h
b/include/linux/init.h
index a01f01c1a5c5414ba6ba6ccf7fc68230b35d0c31..31f54de584298546bc92c71717f533a7dbe952be 100644
(file)
--- a/
include/linux/init.h
+++ b/
include/linux/init.h
@@
-338,14
+338,14
@@
struct obs_kernel_param {
var = 1; \
return 0; \
} \
-
__setup_param(str_on, parse_##var##_on, parse_##var##_on, 1);
\
+
early_param(str_on, parse_##var##_on);
\
\
static int __init parse_##var##_off(char *arg) \
{ \
var = 0; \
return 0; \
} \
-
__setup_param(str_off, parse_##var##_off, parse_##var##_off, 1
)
+
early_param(str_off, parse_##var##_off
)
/* Relies on boot_command_line being set */
void __init parse_early_param(void);