Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> On Mon, Sep 13, 2021 at 12:56 PM Anson Jacob <Anson.Jacob@xxxxxxx> wrote: > > Add dummy function when CONFIG_HSA_AMD is not enabled. > > Fixes: 433d2448d57c ("drm/amdkfd: separate kfd_iommu_resume from kfd_resume") > Signed-off-by: Anson Jacob <Anson.Jacob@xxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h > index b40ed399d2cf..3bc52b2c604f 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h > @@ -367,6 +367,11 @@ static inline void kgd2kfd_suspend(struct kfd_dev *kfd, bool run_pm) > { > } > > +static int __maybe_unused kgd2kfd_resume_iommu(struct kfd_dev *kfd) > +{ > + return 0; > +} > + > static inline int kgd2kfd_resume(struct kfd_dev *kfd, bool run_pm) > { > return 0; > -- > 2.25.1 >