Skip to contentSkip to conversation

drm/amdgpu: fix no previous prototype warning

PATCH In review Kun Liu 2 participants 2 messages Mar 1, 2023

Subsystems (3)
lore
Share & tools
lore

Kun Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: fix no previous prototype warning

add static prefix for vangogh_set_apu_thermal_limit function

---
 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +1 -1
index 016d5621e0b3..24046af60933 100644
@@ -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,
Signature · 1 line
2.25.1
#1 lore raw

[AMD Official Use Only - General]

Please add proper tag as instructed. Other than this , the patch is Reviewed-by: Evan Quan <[email protected]> "If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/"

BR
Evan

Quoted 35 lines

-----Original Message-----
From: Kun Liu <[email protected]>
Sent: Wednesday, March 1, 2023 10:42 AM
To: [email protected]; Quan, Evan <[email protected]>
Cc: Liang, Richard qi <[email protected]>; Deucher, Alexander <[email protected]>; Liu, Kun <[email protected]>
Subject: [PATCH] drm/amdgpu: fix no previous prototype warning

add static prefix for vangogh_set_apu_thermal_limit function

---
 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +0 -0
index 016d5621e0b3..24046af60933 100644
@@ -1597,7 +1597,7 @@ static int vangogh_get_apu_thermal_limit(struct

smu_context *smu, uint32_t *limi

drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c +0 -1
 					      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