Reviewed-by: Evan Quan <evan.q...@amd.com> > -----Original Message----- > From: Yuan, Xiaojie <xiaojie.y...@amd.com> > Sent: 2019年9月5日 17:26 > To: amd-gfx@lists.freedesktop.org > Cc: Feng, Kenneth <kenneth.f...@amd.com>; Quan, Evan > <evan.q...@amd.com>; Wang, Kevin(Yang) <kevin1.w...@amd.com>; > Yuan, Xiaojie <xiaojie.y...@amd.com> > Subject: [PATCH] drm/amd/powerplay: fix 'unusedd variable' compile > warning > > Signed-off-by: Xiaojie Yuan <xiaojie.y...@amd.com> > --- > drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 2 -- > drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2 -- > drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 -- > drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 2 -- > 4 files changed, 8 deletions(-) > > diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > index 6e8eb0f94c8b..1c6732847185 100644 > --- a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > +++ b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c > @@ -1931,7 +1931,5 @@ static const struct pptable_funcs > arcturus_ppt_funcs = { > > void arcturus_set_ppt_funcs(struct smu_context *smu) { > - struct smu_table_context *smu_table = &smu->smu_table; > - > smu->ppt_funcs = &arcturus_ppt_funcs; > } > diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > index e3add8b59291..16634e657589 100644 > --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c > @@ -1630,7 +1630,5 @@ static const struct pptable_funcs navi10_ppt_funcs > = { > > void navi10_set_ppt_funcs(struct smu_context *smu) { > - struct smu_table_context *smu_table = &smu->smu_table; > - > smu->ppt_funcs = &navi10_ppt_funcs; > } > diff --git a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c > b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c > index b7fa8b158ff2..a5cf846b50d4 100644 > --- a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c > +++ b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c > @@ -257,8 +257,6 @@ static const struct pptable_funcs renoir_ppt_funcs = { > > void renoir_set_ppt_funcs(struct smu_context *smu) { > - struct smu_table_context *smu_table = &smu->smu_table; > - > smu->ppt_funcs = &renoir_ppt_funcs; > smu->smc_if_version = SMU12_DRIVER_IF_VERSION; } diff --git > a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c > b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c > index 18d1b432f719..929f61891dfa 100644 > --- a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c > +++ b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c > @@ -3180,7 +3180,5 @@ static const struct pptable_funcs vega20_ppt_funcs > = { > > void vega20_set_ppt_funcs(struct smu_context *smu) { > - struct smu_table_context *smu_table = &smu->smu_table; > - > smu->ppt_funcs = &vega20_ppt_funcs; > } > -- > 2.20.1
_______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx