[PW_SID:969152] riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files#478
[PW_SID:969152] riscv: Replace __ASSEMBLY__ with __ASSEMBLER__ in header files#478linux-riscv-bot wants to merge 3 commits into
Conversation
__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code. This is a completely mechanical patch (done with a simple "sed -i" statement). Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Alexandre Ghiti <alex@ghiti.fr> Cc: linux-riscv@lists.infradead.org Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
While the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi headers that rather should use __ASSEMBLER__ instead. So let's standardize on the __ASSEMBLER__ macro that is provided by the compilers now. This originally was a completely mechanical patch (done with a simple "sed -i" statement), with some manual fixups during rebasing of the patch later. Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Alexandre Ghiti <alex@ghiti.fr> Cc: linux-riscv@lists.infradead.org Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 1: "[v2,1/2] riscv: Replace ASSEMBLY with ASSEMBLER in uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
|
Patch 2: "[v2,2/2] riscv: Replace ASSEMBLY with ASSEMBLER in non-uapi headers" |
7991a94 to
43068f0
Compare
PR for series 969152 applied to workflow__riscv__for-next
Name: riscv: Replace ASSEMBLY with ASSEMBLER in header files
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=969152
Version: 2