Re: [PATCH 1/2] gpu: drm: Replace "unsigned" with "unsigned int"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 12, 2021 at 2:21 PM Fabio M. De Francesco
<fmdefrancesco@xxxxxxxxx> wrote:
>
> Replaced "unsigned with "unsigned int" since the latter is preferred.
>
> Signed-off-by: Fabio M. De Francesco <fmdefrancesco@xxxxxxxxx>

Nit for the subjects: In drm we generally don't have the gpu prefix,
but just the level below + what component. So for these two patches it
would be drm/atomic-helpers: as prefix in the patch summary lines. Can
you pls adjust that? Patches look good otherwise.
Thanks, Daniel

> ---
>  drivers/gpu/drm/drm_atomic_helper.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
> index f2b3e28d938b..cd748ff61162 100644
> --- a/drivers/gpu/drm/drm_atomic_helper.c
> +++ b/drivers/gpu/drm/drm_atomic_helper.c
> @@ -106,7 +106,7 @@ static int handle_conflicting_encoders(struct drm_atomic_state *state,
>         struct drm_connector *connector;
>         struct drm_connector_list_iter conn_iter;
>         struct drm_encoder *encoder;
> -       unsigned encoder_mask = 0;
> +       unsigned int encoder_mask = 0;
>         int i, ret = 0;
>
>         /*
> @@ -609,7 +609,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,
>         struct drm_connector *connector;
>         struct drm_connector_state *old_connector_state, *new_connector_state;
>         int i, ret;
> -       unsigned connectors_mask = 0;
> +       unsigned int connectors_mask = 0;
>
>         for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) {
>                 bool has_connectors =
> @@ -1478,7 +1478,7 @@ drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
>         struct drm_crtc *crtc;
>         struct drm_crtc_state *old_crtc_state, *new_crtc_state;
>         int i, ret;
> -       unsigned crtc_mask = 0;
> +       unsigned int crtc_mask = 0;
>
>          /*
>           * Legacy cursor ioctls are completely unsynced, and userspace
> @@ -2575,7 +2575,7 @@ drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)
>         struct drm_crtc_state *new_crtc_state =
>                 drm_atomic_get_new_crtc_state(old_state, crtc);
>         struct drm_plane *plane;
> -       unsigned plane_mask;
> +       unsigned int plane_mask;
>
>         plane_mask = old_crtc_state->plane_mask;
>         plane_mask |= new_crtc_state->plane_mask;
> --
> 2.31.1
>


-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux