Re: [PATCH 03/10] samples/livepatch: add module descriptions
From: Petr Mladek
Date: Tue Mar 25 2025 - 06:02:54 EST
On Mon 2025-03-24 18:32:28, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> Every module should have a description, so add one for each of these modules.
>
> --- a/samples/livepatch/livepatch-callbacks-busymod.c
> +++ b/samples/livepatch/livepatch-callbacks-busymod.c
> @@ -56,4 +56,5 @@ static void livepatch_callbacks_mod_exit(void)
>
> module_init(livepatch_callbacks_mod_init);
> module_exit(livepatch_callbacks_mod_exit);
> +MODULE_DESCRIPTION("Live patching demo for (un)patching callbacks");
This is another support module similar to livepatch-callbacks-mod.c.
I would use the same description, here:
MODULE_DESCRIPTION("Live patching demo for (un)patching callbacks, support module");
> MODULE_LICENSE("GPL");
> diff --git a/samples/livepatch/livepatch-callbacks-demo.c b/samples/livepatch/livepatch-callbacks-demo.c
> index 11c3f4357812..9e69d9caed25 100644
> --- a/samples/livepatch/livepatch-callbacks-demo.c
> +++ b/samples/livepatch/livepatch-callbacks-demo.c
> @@ -192,5 +192,6 @@ static void livepatch_callbacks_demo_exit(void)
>
> module_init(livepatch_callbacks_demo_init);
> module_exit(livepatch_callbacks_demo_exit);
> +MODULE_DESCRIPTION("Live patching demo for (un)patching callbacks");
> MODULE_LICENSE("GPL");
> MODULE_INFO(livepatch, "Y");
> diff --git a/samples/livepatch/livepatch-callbacks-mod.c b/samples/livepatch/livepatch-callbacks-mod.c
> index 2a074f422a51..d1851b471ad9 100644
> --- a/samples/livepatch/livepatch-callbacks-mod.c
> +++ b/samples/livepatch/livepatch-callbacks-mod.c
> @@ -38,4 +38,5 @@ static void livepatch_callbacks_mod_exit(void)
>
> module_init(livepatch_callbacks_mod_init);
> module_exit(livepatch_callbacks_mod_exit);
> +MODULE_DESCRIPTION("Live patching demo for (un)patching callbacks, support module");
> MODULE_LICENSE("GPL");
The rest looks good. With the above change:
Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
Thanks a lot for fixing this.
Arnd, should I push this via the livepatch tree or would you prefer to push
the entire patchset together? Both ways work for me.
Best Regards,
Petr