[PATCH] drm/amdgpu: fix no previous prototype warning

Quan, Evan Evan.Quan at amd.com
Wed Mar 1 03:06:21 UTC 2023


[AMD Official Use Only - General]

Please add proper tag as instructed. Other than this , the patch is Reviewed-by: Evan Quan <evan.quan at amd.com>
"If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303010827.c2N0yBGT-lkp@intel.com/"

BR
Evan
> -----Original Message-----
> From: Kun Liu <Kun.Liu2 at amd.com>
> Sent: Wednesday, March 1, 2023 10:42 AM
> To: amd-gfx at lists.freedesktop.org; Quan, Evan <Evan.Quan at amd.com>
> Cc: Liang, Richard qi <Richardqi.Liang at amd.com>; Deucher, Alexander
> <Alexander.Deucher at amd.com>; Liu, Kun <Kun.Liu2 at amd.com>
> Subject: [PATCH] drm/amdgpu: fix no previous prototype warning
> 
> add static prefix for vangogh_set_apu_thermal_limit function
> 
> Signed-off-by: Kun Liu <Kun.Liu2 at amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> index 016d5621e0b3..24046af60933 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> @@ -1597,7 +1597,7 @@ static int vangogh_get_apu_thermal_limit(struct
> smu_context *smu, uint32_t *limi
>  					      0, limit);
>  }
> 
> -int vangogh_set_apu_thermal_limit(struct smu_context *smu, uint32_t
> limit)
> +static int vangogh_set_apu_thermal_limit(struct smu_context *smu,
> uint32_t limit)
>  {
>  	return smu_cmn_send_smc_msg_with_param(smu,
> 
> SMU_MSG_SetReducedThermalLimit,
> --
> 2.25.1


More information about the amd-gfx mailing list