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@xxxxxxx> > --- > 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, _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx