Re: [PATCH] drm/atomic: Initialize variables in drm_atomic_helper_async_check() to make gcc happy

2018-07-23 Thread Boris Brezillon
On Mon, 23 Jul 2018 10:09:25 -0400 Sean Paul wrote: > On Mon, Jul 23, 2018 at 03:59:02PM +0200, Boris Brezillon wrote: > > drm_atomic_helper_async_check() declares the plane, old_plane_state and > > new_plane_state variables to iterate over all planes of the atomic > > state and make sure only on

Re: [PATCH] drm/atomic: Initialize variables in drm_atomic_helper_async_check() to make gcc happy

2018-07-23 Thread Sean Paul
On Mon, Jul 23, 2018 at 03:59:02PM +0200, Boris Brezillon wrote: > drm_atomic_helper_async_check() declares the plane, old_plane_state and > new_plane_state variables to iterate over all planes of the atomic > state and make sure only one plane is enabled. > > Unfortunately gcc is not smart enough

[PATCH] drm/atomic: Initialize variables in drm_atomic_helper_async_check() to make gcc happy

2018-07-23 Thread Boris Brezillon
drm_atomic_helper_async_check() declares the plane, old_plane_state and new_plane_state variables to iterate over all planes of the atomic state and make sure only one plane is enabled. Unfortunately gcc is not smart enough to figure out that the check on n_planes is enough to guarantee that plane