Re: [PATCH v4 4/4] bootconfig: Rename xbc_destroy_all() to xbc_fini()

From: Steven Rostedt
Date: Thu Sep 16 2021 - 09:26:35 EST


On Thu, 16 Sep 2021 15:23:36 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:

> Avoid using this noisy name and use more calm one.
> This is just a name change. No functional change.
>
> Signed-off-by: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
> ---
> include/linux/bootconfig.h | 2 +-
> init/main.c | 2 +-
> lib/bootconfig.c | 8 ++++----
> tools/bootconfig/main.c | 2 +-
> 4 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/include/linux/bootconfig.h b/include/linux/bootconfig.h
> index f955bb7eabbb..ba40194a339c 100644
> --- a/include/linux/bootconfig.h
> +++ b/include/linux/bootconfig.h
> @@ -277,7 +277,7 @@ int __init xbc_init(const char *buf, size_t size, const char **emsg, int *epos);
> int __init xbc_get_info(int *node_size, size_t *data_size);
>
> /* XBC cleanup data structures */
> -void __init xbc_destroy_all(void);
> +void __init xbc_fini(void);
>
> /* Debug dump functions */
> void __init xbc_debug_dump(void);
> diff --git a/init/main.c b/init/main.c
> index 747b4fd38a1a..99a23324d4a1 100644
> --- a/init/main.c
> +++ b/init/main.c
> @@ -463,7 +463,7 @@ static void __init setup_boot_config(void)
>
> static void __init exit_boot_config(void)
> {
> - xbc_destroy_all();
> + xbc_fini();

I didn't know this was a thing. But looking for other use cases with
"*_fini(", there seems to be plenty of precedence in the kernel for this
change.

-- Steve


> }