Re: [PATCH v2 0/2] riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files
From: Thomas Huth
Date: Mon Aug 18 2025 - 02:09:13 EST
On 06/08/2025 19.15, patchwork-bot+linux-riscv@xxxxxxxxxx wrote:
Hello:
This series was applied to riscv/linux.git (for-next)
by Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>:
Hi Alexandre,
I can't see the patches in the for-next branch ... have they been dropped
again? Was there an issue with the patches?
Thanks,
Thomas
On Fri, 6 Jun 2025 09:09:50 +0200 you wrote:
The kernel Makefiles define the __ASSEMBLY__ macro to provide
a way to use headers in both, assembly and C source code.
However, 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:
[...]
Here is the summary with links:
- [v2,1/2] riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
https://git.kernel.org/riscv/c/c47963980ba6
- [v2,2/2] riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
https://git.kernel.org/riscv/c/b5eb1f12a416
You are awesome, thank you!