Reviewed-by: Evan Quan <evan.quan@xxxxxxx> > -----Original Message----- > From: Yuan, Xiaojie <Xiaojie.Yuan@xxxxxxx> > Sent: 2019年9月5日 17:26 > To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Cc: Feng, Kenneth <Kenneth.Feng@xxxxxxx>; Quan, Evan > <Evan.Quan@xxxxxxx>; Wang, Kevin(Yang) <Kevin1.Wang@xxxxxxx>; > Yuan, Xiaojie <Xiaojie.Yuan@xxxxxxx> > Subject: [PATCH] drm/amd/powerplay: fix 'unusedd variable' compile > warning > > Signed-off-by: Xiaojie Yuan <xiaojie.yuan@xxxxxxx> > --- > 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@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx