Re: [PATCH] livepatch: Make kobj_type structures constant

From: Petr Mladek
Date: Tue Feb 21 2023 - 10:55:50 EST


On Fri 2023-02-17 03:14:41, Thomas Weißschuh wrote:
> Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
> the driver core allows the usage of const struct kobj_type.
>
> Take advantage of this to constify the structure definitions to prevent
> modification at runtime.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>

Best Regards,
Petr

PS: I am going to queue this patch for 6.4. I could eventually add
it into a pull request for 6.3-rc if it was needed because of
a more important fix.

This patch is trivial. But even trivial patches should spend
at least few days in linux-next...