All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb()
@ 2022-05-02  5:39 Abhinav Kumar
  2022-05-02  8:06 ` Dmitry Baryshkov
  2022-05-02 20:45 ` Stephen Boyd
  0 siblings, 2 replies; 4+ messages in thread
From: Abhinav Kumar @ 2022-05-02  5:39 UTC (permalink / raw)
  To: freedreno
  Cc: Abhinav Kumar, dri-devel, swboyd, seanpaul, dmitry.baryshkov,
	quic_jesszhan, quic_aravindh

Add missing break statement for dpu_hw_ctl_update_pending_flush_wb().
Otherwise this leads to below build warning.

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
warning: unannotated fall-through between switch labels
           default:
           ^
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
note: insert 'break;' to avoid fall-through
           default:
           ^
           break;
1 warning generated.

Fixes: 2e0086d8c61d ("drm/msm/dpu: add changes to support writeback in hw_ctl")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
index 254fdf06bb42..c33e7ef611a6 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
@@ -270,6 +270,7 @@ static void dpu_hw_ctl_update_pending_flush_wb(struct dpu_hw_ctl *ctx,
 	case WB_1:
 	case WB_2:
 		ctx->pending_flush_mask |= BIT(WB_IDX);
+		break;
 	default:
 		break;
 	}
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb()
  2022-05-02  5:39 [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb() Abhinav Kumar
@ 2022-05-02  8:06 ` Dmitry Baryshkov
  2022-05-02 20:45 ` Stephen Boyd
  1 sibling, 0 replies; 4+ messages in thread
From: Dmitry Baryshkov @ 2022-05-02  8:06 UTC (permalink / raw)
  To: Abhinav Kumar
  Cc: dri-devel, swboyd, seanpaul, quic_jesszhan, quic_aravindh, freedreno

On Mon, 2 May 2022 at 08:39, Abhinav Kumar <quic_abhinavk@quicinc.com> wrote:
>
> Add missing break statement for dpu_hw_ctl_update_pending_flush_wb().
> Otherwise this leads to below build warning.
>
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
> warning: unannotated fall-through between switch labels
>            default:
>            ^
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
> note: insert 'break;' to avoid fall-through
>            default:
>            ^
>            break;
> 1 warning generated.
>
> Fixes: 2e0086d8c61d ("drm/msm/dpu: add changes to support writeback in hw_ctl")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

> ---
>  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> index 254fdf06bb42..c33e7ef611a6 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c
> @@ -270,6 +270,7 @@ static void dpu_hw_ctl_update_pending_flush_wb(struct dpu_hw_ctl *ctx,
>         case WB_1:
>         case WB_2:
>                 ctx->pending_flush_mask |= BIT(WB_IDX);
> +               break;
>         default:
>                 break;
>         }
> --
> 2.7.4
>


-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb()
  2022-05-02  5:39 [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb() Abhinav Kumar
  2022-05-02  8:06 ` Dmitry Baryshkov
@ 2022-05-02 20:45 ` Stephen Boyd
  2022-05-02 20:59   ` Abhinav Kumar
  1 sibling, 1 reply; 4+ messages in thread
From: Stephen Boyd @ 2022-05-02 20:45 UTC (permalink / raw)
  To: Abhinav Kumar, freedreno
  Cc: dri-devel, seanpaul, dmitry.baryshkov, quic_jesszhan, quic_aravindh

Quoting Abhinav Kumar (2022-05-01 22:39:41)
> Add missing break statement for dpu_hw_ctl_update_pending_flush_wb().
> Otherwise this leads to below build warning.
>
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
> warning: unannotated fall-through between switch labels
>            default:
>            ^
> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
> note: insert 'break;' to avoid fall-through
>            default:
>            ^
>            break;
> 1 warning generated.
>
> Fixes: 2e0086d8c61d ("drm/msm/dpu: add changes to support writeback in hw_ctl")

What commit is this?

> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
> ---

Patch contents look sane

Reviewed-by: Stephen Boyd <swboyd@chromium.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb()
  2022-05-02 20:45 ` Stephen Boyd
@ 2022-05-02 20:59   ` Abhinav Kumar
  0 siblings, 0 replies; 4+ messages in thread
From: Abhinav Kumar @ 2022-05-02 20:59 UTC (permalink / raw)
  To: Stephen Boyd, freedreno
  Cc: dri-devel, seanpaul, dmitry.baryshkov, quic_jesszhan, quic_aravindh



On 5/2/2022 1:45 PM, Stephen Boyd wrote:
> Quoting Abhinav Kumar (2022-05-01 22:39:41)
>> Add missing break statement for dpu_hw_ctl_update_pending_flush_wb().
>> Otherwise this leads to below build warning.
>>
>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
>> warning: unannotated fall-through between switch labels
>>             default:
>>             ^
>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:273:2:
>> note: insert 'break;' to avoid fall-through
>>             default:
>>             ^
>>             break;
>> 1 warning generated.
>>
>> Fixes: 2e0086d8c61d ("drm/msm/dpu: add changes to support writeback in hw_ctl")
> 
> What commit is this?
This seems incorrect. Looks like i put this from my local tree.

Should be

Fixes: 86e601c2317f ("drm/msm/dpu: add changes to support writeback in 
hw_ctl")

> 
>> Reported-by: kernel test robot <lkp@intel.com>
>> Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
>> ---
> 
> Patch contents look sane
> 
> Reviewed-by: Stephen Boyd <swboyd@chromium.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-02 20:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02  5:39 [PATCH] drm/msm/dpu: add missing break statement for update_pending_flush_wb() Abhinav Kumar
2022-05-02  8:06 ` Dmitry Baryshkov
2022-05-02 20:45 ` Stephen Boyd
2022-05-02 20:59   ` Abhinav Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.