[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175715312004.95031.8015199240329986989.b4-ty@linux.ibm.com>
Date: Sat, 6 Sep 2025 15:37:28 +0530
From: Madhavan Srinivasan <maddy@...ux.ibm.com>
To: linuxppc-dev@...ts.ozlabs.org, Michael Ellerman <mpe@...erman.id.au>,
Thomas Huth <thuth@...hat.com>
Cc: Christophe Leroy <christophe.leroy@...roup.eu>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 0/2] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files
On Fri, 01 Aug 2025 10:20:05 +0200, Thomas Huth wrote:
> The kernel Makefiles define the __ASSEMBLY__ macro to provide
> a way to use headers in both, assembly and C source code. This is bad
> since macros starting with two underscores are names that are reserved
> by the C language.
> Additionally, all the supported versions of the GCC and Clang compilers
> also define the macro __ASSEMBLER__ automatically already when compiling
> assembly code, so some kernel headers are using __ASSEMBLER__ instead.
> With regards to userspace code, this seems also to be constant source
> of confusion, see for example these links here:
>
> [...]
Applied to powerpc/next.
[1/2] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
https://git.kernel.org/powerpc/c/8e0665eb85394ea9823fb965a73ae9a6265af4b0
[2/2] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
https://git.kernel.org/powerpc/c/74db6cc331b0da5c48c62b7af68d747ec9af1984
Thanks
Powered by blists - more mailing lists