Skip to contentSkip to conversation

drm/amd/pm:open brace '{' following function definitions go on the next line

PATCH New [email protected] 2 participants 3 messages Jul 24, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 drm/amd/pm:open brace '{' following function definitions go on the next line

ERROR: open brace '{' following function definitions go on the next line

---
 drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c +0 -0
index c788aa7a99a9..5e408a195860 100644
@@ -205,7 +205,8 @@ int smu_v12_0_set_default_dpm_tables(struct smu_context *smu)
 	return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0, 

smu_table->clocks_table, false);
}

-int smu_v12_0_mode2_reset(struct smu_context *smu){ +int smu_v12_0_mode2_reset(struct smu_context *smu) +{
return smu_cmn_send_smc_msg_with_param(smu,
SMU_MSG_GfxDeviceDriverReset, SMU_RESET_MODE_2, NULL);
}

#2 lore raw

PATCH 1/1 drm/amd/pm: open brace '{' following function definitions go on the next line

ERROR: open brace '{' following function definitions go on the next line

---
 drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c +0 -0
index c788aa7a99a9..5e408a195860 100644
@@ -205,7 +205,8 @@ int smu_v12_0_set_default_dpm_tables(struct smu_context *smu)
 	return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0, 

smu_table->clocks_table, false);
}

-int smu_v12_0_mode2_reset(struct smu_context *smu){ +int smu_v12_0_mode2_reset(struct smu_context *smu) +{
return smu_cmn_send_smc_msg_with_param(smu,
SMU_MSG_GfxDeviceDriverReset, SMU_RESET_MODE_2, NULL);
}

Applied
#3 lore raw

Re: [PATCH] drm/amd/pm: open brace '{' following function definitions go on the next line

Applied. Thanks!

Quoted 25 lines · On Mon, Jul 24, 2023 at 4:44 AM <[email protected]> wrote:

ERROR: open brace '{' following function definitions go on the next line

---
  drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c +2 -1
index c788aa7a99a9..5e408a195860 100644
@@ -205,7 +205,8 @@ int smu_v12_0_set_default_dpm_tables(struct
 smu_context *smu)
        return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0,
 smu_table->clocks_table, false);
  }
 
-int smu_v12_0_mode2_reset(struct smu_context *smu){
+int smu_v12_0_mode2_reset(struct smu_context *smu)
+{
        return smu_cmn_send_smc_msg_with_param(smu,

SMU_MSG_GfxDeviceDriverReset, SMU_RESET_MODE_2, NULL);
}