[PATCH] drm/amd/amdgpu: Import amdgpu_amdkfd_gfx_v9 header file into implementation

Felix Kuehling felix.kuehling at amd.com
Tue Nov 10 04:34:49 UTC 2020


This seems to fix a problem that was reported by the kernel test robot
in this email: "[radeon-alex:drm-next 655/663]
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c:802:6: warning: no
previous prototype for function 'kgd_gfx_v9_get_cu_occupancy'". It would
have been good to include an appropriate "Reported-by:" tag, and also a
"Fixes:" tag to point out the recent change that introduced the warnings.

Regards,
  Felix

Am 2020-11-06 um 2:05 p.m. schrieb Ramesh Errabolu:
> [Why]
> Prevent compiler warnings when building amdgpu kernel module
>
> [How]
> Add the include directive for amdgpu_amdkfd_gfx_v9 header file
>
> Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
> index b75bf0bb05ae..c70d8cadaf18 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
> @@ -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,


More information about the amd-gfx mailing list