LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Masami Hiramatsu <mhiramat@kernel.org>
To: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed
Date: Thu, 26 Aug 2021 23:27:51 +0900 [thread overview]
Message-ID: <20210826232751.614f9be6c5ea0a48c5cebd04@kernel.org> (raw)
In-Reply-To: <162996912688.236535.4047855429538984099.stgit@devnote2>
On Thu, 26 Aug 2021 18:12:07 +0900
Masami Hiramatsu <mhiramat@kernel.org> wrote:
> Since the bootconfig is used only in the init functions,
> it doesn't need to keep the data after boot. Free it when
> the init memory is removed.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
> ---
> init/main.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/init/main.c b/init/main.c
> index 8d97aba78c3a..d9b0a99bb2dd 100644
> --- a/init/main.c
> +++ b/init/main.c
> @@ -1493,6 +1493,7 @@ static int __ref kernel_init(void *unused)
> kprobe_free_init_mem();
> ftrace_free_init_mem();
> kgdb_free_init_mem();
> + xbc_destroy_all();
Oops, xbc_destroy_all() is not defined if CONFIG_BOOT_CONFIG=n.
Let me fix that.
Thanks,
> free_initmem();
> mark_readonly();
>
>
--
Masami Hiramatsu <mhiramat@kernel.org>
next prev parent reply other threads:[~2021-08-26 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 9:11 [PATCH 0/3] bootconfig: Cleanup and reorder the init parameter from bootconfig Masami Hiramatsu
2021-08-26 9:12 ` [PATCH 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed Masami Hiramatsu
2021-08-26 14:04 ` kernel test robot
2021-08-26 14:04 ` kernel test robot
2021-08-26 14:27 ` Masami Hiramatsu [this message]
2021-08-26 9:12 ` [PATCH 2/3] init/bootconfig: Reorder init parameter from bootconfig and cmdline Masami Hiramatsu
2021-08-26 9:12 ` [PATCH 3/3] docs: bootconfig: Add how to use bootconfig for kernel parameters Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210826232751.614f9be6c5ea0a48c5cebd04@kernel.org \
--to=mhiramat@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--subject='Re: [PATCH 1/3] init: bootconfig: Remove all bootconfig data when the init memory is removed' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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).