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
|
||
|---|---|---|
| .. | ||
| core.c | ||
| core.h | ||
| Kconfig | ||
| Makefile | ||
| patch.c | ||
| patch.h | ||
| shadow.c | ||
| state.c | ||
| state.h | ||
| transition.c | ||
| transition.h | ||