Re: [PATCH] media: omap3isp: fix out-of-range warning

From: Arnd Bergmann
Date: Thu Nov 25 2021 - 02:45:20 EST


On Wed, Nov 24, 2021 at 11:26 PM Laurent Pinchart
<laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
> On Wed, Nov 24, 2021 at 08:24:15PM +0100, Arnd Bergmann wrote:
> >
> > Add a cast to 32-bit to avoid the warning. Checking just the lower bounds
> > would be sufficient as well, but it seems more consistent to use
> > the IS_OUT_OF_BOUNDS() check for all members.
>
> Mauro has submitted a fix that handles the cast in the
> IS_OUT_OF_BOUNDS() macro, see
> https://lore.kernel.org/all/b70f819b11e024649f113be1158f34b24914a1ed.1637573097.git.mchehab+huawei@xxxxxxxxxx/.

Ok, thanks. I've marked my patch as 'Obsoleted' in patchwork now.

Arnd