On Tue, Sep 07, 2021 at 05:32:53PM +, Chrisanthus, Anitha wrote:
> Hi Kees,
> This patch
> https://patchwork.kernel.org/project/dri-devel/patch/20210728003126.1425028-13-anitha.chrisant...@intel.com/
> is pushed to drm-misc-fixes. This change should fix the below warnings.
>
> I apologize fo
ednesday, August 25, 2021 11:18 AM
> > To: Chrisanthus, Anitha
> > Cc: Kees Cook ; Dea, Edmund J
> > ; David Airlie ; Daniel Vetter
> > ; dri-devel@lists.freedesktop.org; Sam Ravnborg
> > ; linux-ker...@vger.kernel.org; linux-
> > harden...@vger
tter
> ; dri-devel@lists.freedesktop.org; Sam Ravnborg
> ; linux-ker...@vger.kernel.org; linux-
> harden...@vger.kernel.org
> Subject: [PATCH] drm/kmb: Avoid warnings on impossible plane_id
>
> KMB_MAX_PLANES is defined as 1, yet kmb_plane_atomic_disable() had code
> for wri
KMB_MAX_PLANES is defined as 1, yet kmb_plane_atomic_disable() had code
for writing beyond 1. It is gated by a WARN_ON() that would skip it,
though, but under some compiler versions, poor Dead Code Elimination
wasn't optimizing away the unused switch cases, leading to array bounds
warnings when bui