[lkml]   [2022]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] s390: disable -Warray-bounds
Hi Linus,

On Mi, 2022-06-08 at 16:59 -0700, Linus Torvalds wrote:
> On Wed, Jun 8, 2022 at 2:33 PM Kees Cook <> wrote:
> >
> > I and others have been working through a bunch of them, though yes,
> > they're not all fixed yet. I've been trying to track it here[1], but
> > many of those fixes are only in -next.
> Hmm. Even with that disabled, I get a few warnings I *really* would
> want to get rid of.
> The one in ipuv3-crtc.c seems valid about "address used as boolean is
> always true".
> The 'dangling-pointer' warning does seem interesting, but not when the
> compiler does as bad a job as gcc seems to do.
> See the attached patch for
>  (a) make the s390 "use -Wno-array-bounds for gcc-12" be generic
>  (b) fix the ipuv3-crtc.c one. IMX people?

Thank you, this fix clearly matches the original intention.

Acked-by: Philipp Zabel <>

The mistake had no adverse effect since the following condition doesn't
actually dereference the NULL pointer, but given the compiler warning

Fixes: eb8c88808c83 ("drm/imx: add deferred plane disabling")


 \ /
  Last update: 2022-06-09 11:58    [W:0.156 / U:0.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site