livepatch: Make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Fri, 17 Feb 2023 03:14:41 +0000 (03:14 +0000)
committerPetr Mladek <pmladek@suse.com>
Thu, 9 Mar 2023 10:15:42 +0000 (11:15 +0100)
commit1b47b80e2fa777b37a9486512f4636d7e6aaa353
tree03a1bf23ec0ce136d851b0acc59019d208fd2d38
parent7dd86cf80127aeef8a447c81228a77f0f25cc211
livepatch: Make kobj_type structures constant

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@weissschuh.net>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20230217-kobj_type-livepatch-v1-1-06ded292e897@weissschuh.net
kernel/livepatch/core.c