Skip to contentSkip to conversation

drm/msm/dp: Silence inconsistent indent warning

PATCH Superseded Stephen Boyd 2 participants 3 messages Aug 23, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm/dp: Silence inconsistent indent warning

Build robots complain

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

Fix it.

Cc Kuogee Hsieh <[email protected]>
Fixes ea530388e64b ("drm/msm/dp: skip checking LINK_STATUS_UPDATED bit")
---
 drivers/gpu/drm/msm/dp/dp_link.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_link.c +1 -2
index 36f0af02749f..1620110806cf 100644
@@ -965,8 +965,7 @@ static int dp_link_process_link_status_update(struct dp_link_private *link)
 	if (channel_eq_done && clock_recovery_done)
 		return -EINVAL;
 
-
-       return 0;
+	return 0;
 }
 
 /**

base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868

Signature · 1 line
https://chromeos.dev
#1 lore raw

Hi Stephen

Quoted 9 lines · Stephen Boyd

Build robots complain

smatch warnings:
drivers/gpu/drm/msm/dp/dp_link.c:969 dp_link_process_link_status_update() warn: inconsistent indenting

Fix it.

Cc Kuogee Hsieh <[email protected]>
Fixes ea530388e64b ("drm/msm/dp: skip checking LINK_STATUS_UPDATED bit")

This patch itself LGTM. But when I was looking at the fixes commit, I noticed one more formatting issue.

There seems to be an extra space character in this part.

drivers/gpu/drm/msm/dp/dp_link.c +0 -0
index 49d7fad36fc4..be986da78c4a 100644
@@ -773,7 +773,8 @@ static int dp_link_process_link_training_request(struct dp_link_private *link)
                        link->request.test_lane_count);
 
        link->dp_link.link_params.num_lanes = 

link->request.test_lane_count;
- link->dp_link.link_params.rate = link->request.test_link_rate;
+ link->dp_link.link_params.rate =
+ drm_dp_bw_code_to_link_rate(link->request.test_link_rate);

        return 0;

Since we are fixing up this commit, can you please fix this too?

Thanks

Abhinav

Quoted 22 lines
---
  drivers/gpu/drm/msm/dp/dp_link.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_link.c +1 -2
index 36f0af02749f..1620110806cf 100644
@@ -965,8 +965,7 @@ static int dp_link_process_link_status_update(struct dp_link_private *link)
  	if (channel_eq_done && clock_recovery_done)
  		return -EINVAL;
 
-
-       return 0;
+	return 0;
  }
 
  /**

base-commit: 568035b01cfb107af8d2e4bd2fb9aea22cf5b868

#2 lore raw

Quoting Abhinav Kumar (2022-08-23 10:47:02)

Quoted 9 lines

link->request.test_lane_count;

(quoted diff) +2 -1
-       link->dp_link.link_params.rate = link->request.test_link_rate;
+       link->dp_link.link_params.rate =
+               drm_dp_bw_code_to_link_rate(link->request.test_link_rate);
 
         return 0;

Since we are fixing up this commit, can you please fix this too?

Sure.