net: bridge: make kobj_type structure constant
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 14 Feb 2023 04:23:11 +0000 (04:23 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Feb 2023 04:48:08 +0000 (20:48 -0800)
commite8c6cbd7656e4cea9e2336a3a85bd609dd76eb3d
tree8764b5c897fffe2bcb6ef574a14f98d5ba01fbf1
parent56193cf96f00e9ae4fc95d31c9725c3642ef1e99
net: bridge: make kobj_type 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>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_if.c