Re: [PATCH] powerpc/barrier: Avoid collision with clang's __lwsync macro

2021-06-17 Thread Michael Ellerman
On Fri, 28 May 2021 11:27:52 -0700, Nathan Chancellor wrote: > A change in clang 13 results in the __lwsync macro being defined as > __builtin_ppc_lwsync, which emits 'lwsync' or 'msync' depending on what > the target supports. This breaks the build because of -Werror in > arch/powerpc, along with

Re: [PATCH] powerpc/barrier: Avoid collision with clang's __lwsync macro

2021-06-01 Thread Nick Desaulniers
On Fri, May 28, 2021 at 11:29 AM Nathan Chancellor wrote: > > A change in clang 13 results in the __lwsync macro being defined as > __builtin_ppc_lwsync, which emits 'lwsync' or 'msync' depending on what > the target supports. Indeed, $ clang --target=powerpc64le-linux-gnu -mcpu=e500 -m32 for

[PATCH] powerpc/barrier: Avoid collision with clang's __lwsync macro

2021-05-28 Thread Nathan Chancellor
A change in clang 13 results in the __lwsync macro being defined as __builtin_ppc_lwsync, which emits 'lwsync' or 'msync' depending on what the target supports. This breaks the build because of -Werror in arch/powerpc, along with thousands of warnings: In file included from