Skip to contentSkip to conversation

drm/amd: Clean up errors in processpptables.c

PATCH In review Ran Sun 2 participants 2 messages Aug 1, 2023

Subsystems (3)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amd: Clean up errors in processpptables.c

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following function definitions go on the next line
ERROR: code indent should use tabs where possible
ERROR: space required before the open parenthesis '('

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +1 -1
index 1866fe20f9e2..f05f011c78be 100644
@@ -676,7 +676,7 @@ static PP_StateClassificationFlags make_classification_flags(
 static int init_non_clock_fields(struct pp_hwmgr *hwmgr,
 						struct pp_power_state *ps,
 							    uint8_t version,
-			 const ATOM_PPLIB_NONCLOCK_INFO *pnon_clock_info) 
+			 const ATOM_PPLIB_NONCLOCK_INFO *pnon_clock_info)
 {
 	unsigned long rrr_index;
 	unsigned long tmp;
Signature · 1 line
2.17.1
#1 lore raw
Quoted 5 lines · Ran Sun

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following function definitions go on the next line
ERROR: code indent should use tabs where possible
ERROR: space required before the open parenthesis '('

The commit message does not match the patch.

Quoted 11 lines
---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +0 -0
index 1866fe20f9e2..f05f011c78be 100644

drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c static PP_StateClassificationFlags make_classification_flags( · line 679

Quoted 5 lines
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +1 -1
@@ -676,7 +676,7 @@ static PP_StateClassificationFlags make_classification_flags(
 static int init_non_clock_fields(struct pp_hwmgr *hwmgr,
 						struct pp_power_state *ps,
 							    uint8_t version,
-			 const ATOM_PPLIB_NONCLOCK_INFO *pnon_clock_info) 
+			 const ATOM_PPLIB_NONCLOCK_INFO *pnon_clock_info)

How about fixing *all* the style problems in the above in one go?

How about sending these fixes in a threaded series instead of filling everyone's inboxes with individual patches? It's 30+ patches just today already.

BR,
Jani.

Quoted 3 lines
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +0 -0
 {
 	unsigned long rrr_index;
 	unsigned long tmp;
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center