drm/amdkfd: Make kobj_type structures constant
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 16 Feb 2023 01:09:00 +0000 (01:09 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Feb 2023 22:35:59 +0000 (17:35 -0500)
commit4fa01c6357d5f4ae80b1794c5ecb71c0c66cd528
treea17b6f7092b8617c45576d75e61c1453345b82f6
parentb2daaa9360610c584fbe8d7d5e8d1fdb99abc7ef
drm/amdkfd: 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: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.c