lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230801055826.6000-1-sunran001@208suo.com>
Date:   Tue,  1 Aug 2023 05:58:26 +0000
From:   Ran Sun <sunran001@...suo.com>
To:     alexander.deucher@....com, airlied@...il.com, daniel@...ll.ch
Cc:     amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
        linux-kernel@...r.kernel.org, Ran Sun <sunran001@...suo.com>
Subject: [PATCH] drm/amd/pm: Clean up errors in vega10_hwmgr.c

Fix the following errors reported by checkpatch:

ERROR: trailing statements should be on next line
ERROR: space required before the open brace '{'
ERROR: space required before the open parenthesis '('
ERROR: space required after that ',' (ctx:VxV)

Signed-off-by: Ran Sun <sunran001@...suo.com>
---
 .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c  | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
index 08518bc1cbbe..ba7294daddfe 100644
--- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
@@ -670,17 +670,23 @@ static int vega10_patch_voltage_dependency_tables_with_lookup_table(
 	for (i = 0; i < 6; i++) {
 		struct phm_ppt_v1_clock_voltage_dependency_table *vdt;
 		switch (i) {
-		case 0: vdt = table_info->vdd_dep_on_socclk;
+		case 0:
+			vdt = table_info->vdd_dep_on_socclk;
 			break;
-		case 1: vdt = table_info->vdd_dep_on_sclk;
+		case 1:
+			vdt = table_info->vdd_dep_on_sclk;
 			break;
-		case 2: vdt = table_info->vdd_dep_on_dcefclk;
+		case 2:
+			vdt = table_info->vdd_dep_on_dcefclk;
 			break;
-		case 3: vdt = table_info->vdd_dep_on_pixclk;
+		case 3:
+			vdt = table_info->vdd_dep_on_pixclk;
 			break;
-		case 4: vdt = table_info->vdd_dep_on_dispclk;
+		case 4:
+			vdt = table_info->vdd_dep_on_dispclk;
 			break;
-		case 5: vdt = table_info->vdd_dep_on_phyclk;
+		case 5:
+			vdt = table_info->vdd_dep_on_phyclk;
 			break;
 		}
 
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ