Skip to contentSkip to conversation

drm/amdkfd: Fix dummy kgd2kfd_probe parameters

PATCH In review Anson Jacob 2 participants 2 messages Sep 30, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdkfd: Fix dummy kgd2kfd_probe parameters

Commit 4d706ed6825f ("drm/amdkfd: clean up parameters in kgd2kfd_probe") updated paremeters for kgd2kfd_probe. Update the dummy function as well when CONFIG_HSA_AMD is not enabled.

Fixes 4d706ed6825f ("drm/amdkfd: clean up parameters in kgd2kfd_probe")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h +1 -2
index 38d883dffc20..69de31754907 100644
@@ -346,8 +346,7 @@ static inline void kgd2kfd_exit(void)
 }
 
 static inline
-struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, struct pci_dev *pdev,
-					unsigned int asic_type, bool vf)
+struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, bool vf)
 {
 	return NULL;
 }
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Anson Jacob

Commit 4d706ed6825f ("drm/amdkfd: clean up parameters in kgd2kfd_probe") updated paremeters for kgd2kfd_probe. Update the dummy function as well when CONFIG_HSA_AMD is not enabled.

Fixes 4d706ed6825f ("drm/amdkfd: clean up parameters in kgd2kfd_probe")

Thanks!

Quoted 21 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h +1 -3
index 38d883dffc20..69de31754907 100644
@@ -346,8 +346,7 @@ static inline void kgd2kfd_exit(void)
 }
 
 static inline
-struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, struct pci_dev *pdev,
-                                       unsigned int asic_type, bool vf)
+struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, bool vf)
 {
        return NULL;
 }
--

2.25.1