* [PATCH] drm/msm/dp: Silence inconsistent indent warning
@ 2022-08-23 2:43 Stephen Boyd
2022-08-23 17:47 ` Abhinav Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Boyd @ 2022-08-23 2:43 UTC (permalink / raw)
To: Rob Clark, Abhinav Kumar, Dmitry Baryshkov, Sean Paul
Cc: linux-kernel, patches, linux-arm-msm, dri-devel, freedreno,
Kuogee Hsieh, kernel test robot
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 <quic_khsieh@quicinc.com>
Fixes: ea530388e64b ("drm/msm/dp: skip checking LINK_STATUS_UPDATED bit")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
---
drivers/gpu/drm/msm/dp/dp_link.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c
index 36f0af02749f..1620110806cf 100644
--- a/drivers/gpu/drm/msm/dp/dp_link.c
+++ b/drivers/gpu/drm/msm/dp/dp_link.c
@@ -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
--
https://chromeos.dev
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/msm/dp: Silence inconsistent indent warning
2022-08-23 2:43 [PATCH] drm/msm/dp: Silence inconsistent indent warning Stephen Boyd
@ 2022-08-23 17:47 ` Abhinav Kumar
2022-08-23 21:20 ` Stephen Boyd
0 siblings, 1 reply; 3+ messages in thread
From: Abhinav Kumar @ 2022-08-23 17:47 UTC (permalink / raw)
To: Stephen Boyd, Rob Clark, Dmitry Baryshkov, Sean Paul
Cc: linux-kernel, patches, linux-arm-msm, dri-devel, freedreno,
Kuogee Hsieh, kernel test robot
Hi Stephen
On 8/22/2022 7:43 PM, Stephen Boyd wrote:
> 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 <quic_khsieh@quicinc.com>
> 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.
diff --git a/drivers/gpu/drm/msm/dp/dp_link.c
b/drivers/gpu/drm/msm/dp/dp_link.c
index 49d7fad36fc4..be986da78c4a 100644
--- a/drivers/gpu/drm/msm/dp/dp_link.c
+++ b/drivers/gpu/drm/msm/dp/dp_link.c
@@ -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
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Stephen Boyd <swboyd@chromium.org>
> ---
> drivers/gpu/drm/msm/dp/dp_link.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c
> index 36f0af02749f..1620110806cf 100644
> --- a/drivers/gpu/drm/msm/dp/dp_link.c
> +++ b/drivers/gpu/drm/msm/dp/dp_link.c
> @@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] drm/msm/dp: Silence inconsistent indent warning
2022-08-23 17:47 ` Abhinav Kumar
@ 2022-08-23 21:20 ` Stephen Boyd
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2022-08-23 21:20 UTC (permalink / raw)
To: Abhinav Kumar, Dmitry Baryshkov, Rob Clark, Sean Paul
Cc: linux-kernel, patches, linux-arm-msm, dri-devel, freedreno,
Kuogee Hsieh, kernel test robot
Quoting Abhinav Kumar (2022-08-23 10:47:02)
> 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?
>
Sure.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-23 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 2:43 [PATCH] drm/msm/dp: Silence inconsistent indent warning Stephen Boyd
2022-08-23 17:47 ` Abhinav Kumar
2022-08-23 21:20 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®