SUNRPC: make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 14 Feb 2023 04:21:24 +0000 (04:21 +0000)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 14 Feb 2023 21:21:52 +0000 (16:21 -0500)
commitd67307b4147e51b00545e2e17c20bd2cc8e6c745
tree9252be390598e97a0c2f5c2d3ed5ae79b93eb276
parentb46d80bd2d6e7e063c625a20de54248afe8d4889
SUNRPC: 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>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/sysfs.c