Re: [PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 10:23 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Thu, Feb 25, 2021 at 8:45 AM Mathieu Poirier > wrote: > > > > Good morning, > > > > On Thu, Feb 25, 2021 at 10:42:58AM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > clang-12 fails to build

Re: [PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Nick Desaulniers
On Thu, Feb 25, 2021 at 8:45 AM Mathieu Poirier wrote: > > Good morning, > > On Thu, Feb 25, 2021 at 10:42:58AM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > clang-12 fails to build the etm4x driver with -fsanitize=array-bounds: > > > > :1:7: error: expected constant expression in '

Re: [PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Arnd Bergmann
On Thu, Feb 25, 2021 at 5:45 PM Mathieu Poirier wrote: > On Thu, Feb 25, 2021 at 10:42:58AM +0100, Arnd Bergmann wrote: > > index 15016f757828..4cccf874a602 100644 > > --- a/drivers/hwtracing/coresight/coresight-etm4x-core.c > > +++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c > > @@ -691,

Re: [PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Suzuki K Poulose
On 2/25/21 9:42 AM, Arnd Bergmann wrote: From: Arnd Bergmann clang-12 fails to build the etm4x driver with -fsanitize=array-bounds: :1:7: error: expected constant expression in '.inst' directive .inst (0xd520|2) << 19) | ((1) << 16) | (((0x160 + (i * 4) >> 2))) >> 7) & 0x7)

Re: [PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Mathieu Poirier
Good morning, On Thu, Feb 25, 2021 at 10:42:58AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > clang-12 fails to build the etm4x driver with -fsanitize=array-bounds: > > :1:7: error: expected constant expression in '.inst' directive > .inst (0xd520|2) << 19) | ((1) << 16) |

[PATCH] coresight: etm4x: work around clang-12+ build failure

2021-02-25 Thread Arnd Bergmann
From: Arnd Bergmann clang-12 fails to build the etm4x driver with -fsanitize=array-bounds: :1:7: error: expected constant expression in '.inst' directive .inst (0xd520|2) << 19) | ((1) << 16) | (((0x160 + (i * 4) >> 2))) >> 7) & 0x7)) << 12) | ((0x160 + (i * 4) >