drm/amdkfd: Remove unused variable
authorMa Jun <Jun.Ma2@amd.com>
Wed, 26 Oct 2022 09:29:18 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Nov 2022 15:46:03 +0000 (11:46 -0400)
kfd_topology_device->cache_count is not used by
other fucntions, so remove it.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c
drivers/gpu/drm/amd/amdkfd/kfd_topology.h

index 339f60a4cdddfdb39cfcdece5aaf08b37ef1c5f4..568cbf1d8259cc68b1e653f74f508c449439dd89 100644 (file)
@@ -1131,7 +1131,6 @@ static int kfd_parse_subtype_cache(struct crat_subtype_cache *cache,
                        if (cache->flags & CRAT_CACHE_FLAGS_SIMD_CACHE)
                                props->cache_type |= HSA_CACHE_TYPE_HSACU;
 
-                       dev->cache_count++;
                        dev->node_props.caches_count++;
                        list_add_tail(&props->list, &dev->cache_props);
 
index 9f6c949186c19b362c543bc3729ebb55ce3ead0f..90c069fbd581ea9a110bca06138fd0b27601eb3c 100644 (file)
@@ -128,7 +128,6 @@ struct kfd_topology_device {
        uint32_t                        proximity_domain;
        struct kfd_node_properties      node_props;
        struct list_head                mem_props;
-       uint32_t                        cache_count;
        struct list_head                cache_props;
        struct list_head                io_link_props;
        struct list_head                p2p_link_props;