[PATCH] drm/amd/powerplay: fix 'unusedd variable' compile warning

Quan, Evan Evan.Quan at amd.com
Thu Sep 5 09:30:16 UTC 2019


Reviewed-by: Evan Quan <evan.quan at amd.com>

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



More information about the amd-gfx mailing list