module: make module_ktype structure constant
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 4 Feb 2023 05:44:46 +0000 (05:44 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 9 Mar 2023 20:55:15 +0000 (12:55 -0800)
commit042edf1ebb49a63f299c4cdfb9c1e2ba299c0b91
tree82a65ba20c305d774b164f8eb196ff1b89b2fac5
parentefaa2496bae66f0a78efa60d9b73ceef5ec63d79
module: make module_ktype structure 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 definition to prevent
modification at runtime.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/module.h
kernel/params.c