diff options
author | 2023-02-17 03:14:41 +0000 | |
---|---|---|
committer | 2023-03-09 11:15:42 +0100 | |
commit | 1b47b80e2fa777b37a9486512f4636d7e6aaa353 (patch) | |
tree | 03a1bf23ec0ce136d851b0acc59019d208fd2d38 /kernel/livepatch/patch.c | |
parent | Merge tag 'livepatching-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching (diff) | |
download | linux-rng-1b47b80e2fa777b37a9486512f4636d7e6aaa353.tar.xz linux-rng-1b47b80e2fa777b37a9486512f4636d7e6aaa353.zip |
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
Diffstat (limited to 'kernel/livepatch/patch.c')
0 files changed, 0 insertions, 0 deletions