OSDN Git Service

drm/amd/amdgpu: Import amdgpu_amdkfd_gfx_v9 header file into implementation
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Fri, 6 Nov 2020 19:01:20 +0000 (13:01 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:15:29 +0000 (14:15 -0500)
[Why]
Prevent compiler warnings when building amdgpu kernel module

[How]
Add the include directive for amdgpu_amdkfd_gfx_v9 header file

Fixes: aeee2a48ec9239 ("drm/amd/amdgpu: Enable arcturus devices to access the method kgd_gfx_v9_get_cu_occupancy that is already defined")
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c

index 7d6c001..b43e68f 100644 (file)
@@ -37,6 +37,7 @@
 #include "soc15.h"
 #include "soc15d.h"
 #include "gfx_v9_0.h"
+#include "amdgpu_amdkfd_gfx_v9.h"
 
 enum hqd_dequeue_request_type {
        NO_ACTION = 0,