Re: [PATCH] mm/damon/sysfs: make kobj_type structures constant

From: SeongJae Park
Date: Tue Feb 07 2023 - 17:28:38 EST


Hi Thomas,

On Tue, 07 Feb 2023 19:21:15 +0000 "Thomas Weißschuh" <linux@xxxxxxxxxxxxxx> 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: SeongJae Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]