[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200604071448.GJ228651@umbus.fritz.box>
Date: Thu, 4 Jun 2020 17:14:48 +1000
From: David Gibson <david@...son.dropbear.id.au>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Serge Semin <Sergey.Semin@...kalelectronics.ru>,
Joel Stanley <joel@....id.au>,
Serge Semin <fancer.lancer@...il.com>,
Wolfram Sang <wsa@...-dreams.de>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Rob Herring <robh+dt@...nel.org>,
devicetree-compiler@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH v3 2/2] checks: Improve i2c reg property checking
On Tue, Jun 02, 2020 at 11:28:05AM +0300, Andy Shevchenko wrote:
> On Tue, Jun 2, 2020 at 11:03 AM Serge Semin
> <Sergey.Semin@...kalelectronics.ru> wrote:
> > On Thu, May 28, 2020 at 06:26:50PM +0930, Joel Stanley wrote:
>
> ...
>
> > > +#define I2C_TEN_BIT_ADDRESS (1 << 31)
> >
> > As Andy neatly pointed out here:
> > https://lore.kernel.org/lkml/20200527133656.GV1634618@smile.fi.intel.com/
> > (1 << 31) is UB.
>
> Thanks, Serge. Yes, we have to use 1U in the definitions (for 31 is
> necessary, for the rest is for the sake of consistency).
Joel, I know it seems trivial, but I'm a bit flat out right now. Can
you please resend with the 1U fix applied.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists