mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + init-clean-up-early_param_on_off-macro.patch added to -mm tree
@ 2021-02-01 23:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-01 23:44 UTC (permalink / raw)
  To: joe, johan, masahiroy, mm-commits, ndesaulniers, ojeda


The patch titled
     Subject: init: clean up early_param_on_off() macro
has been added to the -mm tree.  Its filename is
     init-clean-up-early_param_on_off-macro.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/init-clean-up-early_param_on_off-macro.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/init-clean-up-early_param_on_off-macro.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Masahiro Yamada <masahiroy@kernel.org>
Subject: init: clean up early_param_on_off() macro

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>
---

 include/linux/init.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/include/linux/init.h~init-clean-up-early_param_on_off-macro
+++ a/include/linux/init.h
@@ -277,14 +277,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);
_

Patches currently in -mm which might be from masahiroy@kernel.org are

init-versionc-remove-version_linux_version_code-symbol.patch
init-clean-up-early_param_on_off-macro.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-01 23:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 23:44 + init-clean-up-early_param_on_off-macro.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).