drm/amdkfd: Make kfd_fill_cache_non_crat_info() as static
Subsystems (3)
PATCH 1/1 drm/amdkfd: Make kfd_fill_cache_non_crat_info() as static
kfd_fill_cache_non_crat_info() is only used in kfd_topology.c, so make it as static.
Signed-off-by Ma Jun <[email protected]>
Reported-by kernel test robot <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_topology.c +1 -1
@@ -1723,7 +1723,7 @@ static int fill_in_l2_l3_pcache(struct kfd_cache_properties **props_ext,/* kfd_fill_cache_non_crat_info - Fill GPU cache info using kfd_gpu_cache_info * tables */ -void kfd_fill_cache_non_crat_info (struct kfd_topology_device *dev,struct kfd_dev *kdev) +static void kfd_fill_cache_non_crat_info (struct kfd_topology_device *dev,struct kfd_dev *kdev) {struct kfd_gpu_cache_info *pcache_info =NULL ;int i, j, k;
Signature · 1 line
2.25.1
Reviewed-by Guchun Chen <[email protected]>
Regards,
Guchun
-----Original Message-----
From: Ma, Jun <[email protected]>
Sent: Monday, November 7, 2022 10:56 AM
To: [email protected]; Kuehling, Felix <[email protected]>; Deucher, Alexander <[email protected]>
Cc: Ma, Jun <[email protected]>; Chen, Guchun <[email protected]>
Subject: [PATCH] drm/amdkfd: Make kfd_fill_cache_non_crat_info() as static
kfd_fill_cache_non_crat_info() is only used in kfd_topology.c, so make it as static.
Signed-off-by Ma Jun <[email protected]>
Reported-by kernel test robot <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_topology.c +2 -1
@@ -1723,7 +1723,7 @@ static int fill_in_l2_l3_pcache(struct kfd_cache_properties **props_ext,/* kfd_fill_cache_non_crat_info - Fill GPU cache info using kfd_gpu_cache_info * tables */ -void kfd_fill_cache_non_crat_info (struct kfd_topology_device *dev,struct kfd_dev *kdev) +static void kfd_fill_cache_non_crat_info (struct kfd_topology_device +*dev,struct kfd_dev *kdev) {struct kfd_gpu_cache_info *pcache_info =NULL ;
int i, j, k;
--
2.25.1