]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
authorThomas Huth <thuth@redhat.com>
Fri, 1 Aug 2025 08:20:07 +0000 (10:20 +0200)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 1 Sep 2025 07:53:29 +0000 (13:23 +0530)
commit74db6cc331b0da5c48c62b7af68d747ec9af1984
tree9d7bc390841a9f68c076a13680abb988d1905204
parent8e0665eb85394ea9823fb965a73ae9a6265af4b0
powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers

While the GCC and Clang compilers already define __ASSEMBLER__
automatically when compiling assembler code, __ASSEMBLY__ is a
macro that only gets defined by the Makefiles in the kernel.
This is bad since macros starting with two underscores are names
that are reserved by the C language. It can also be very confusing
for the developers when switching between userspace and kernelspace
coding, or when dealing with uapi headers that rather should use
__ASSEMBLER__  instead. So let's standardize now on the __ASSEMBLER__
macro that is provided by the compilers.

This is almost a completely mechanical patch (done with a simple
"sed -i" statement), apart from tweaking two comments manually in
arch/powerpc/include/asm/bug.h and arch/powerpc/include/asm/kasan.h
(which did not have proper underscores at the end) and fixing a
checkpatch error about spaces in arch/powerpc/include/asm/spu_csa.h.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250801082007.32904-3-thuth@redhat.com
91 files changed:
arch/powerpc/boot/page.h
arch/powerpc/include/asm/asm-const.h
arch/powerpc/include/asm/barrier.h
arch/powerpc/include/asm/book3s/32/kup.h
arch/powerpc/include/asm/book3s/32/mmu-hash.h
arch/powerpc/include/asm/book3s/32/pgtable.h
arch/powerpc/include/asm/book3s/64/hash-4k.h
arch/powerpc/include/asm/book3s/64/hash-64k.h
arch/powerpc/include/asm/book3s/64/hash.h
arch/powerpc/include/asm/book3s/64/kup.h
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/book3s/64/pgtable-64k.h
arch/powerpc/include/asm/book3s/64/pgtable.h
arch/powerpc/include/asm/book3s/64/radix.h
arch/powerpc/include/asm/book3s/64/slice.h
arch/powerpc/include/asm/bug.h
arch/powerpc/include/asm/cache.h
arch/powerpc/include/asm/cpu_has_feature.h
arch/powerpc/include/asm/cpuidle.h
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/cputhreads.h
arch/powerpc/include/asm/dcr-native.h
arch/powerpc/include/asm/dcr.h
arch/powerpc/include/asm/epapr_hcalls.h
arch/powerpc/include/asm/exception-64e.h
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/include/asm/extable.h
arch/powerpc/include/asm/feature-fixups.h
arch/powerpc/include/asm/firmware.h
arch/powerpc/include/asm/fixmap.h
arch/powerpc/include/asm/ftrace.h
arch/powerpc/include/asm/head-64.h
arch/powerpc/include/asm/hvcall.h
arch/powerpc/include/asm/hw_irq.h
arch/powerpc/include/asm/interrupt.h
arch/powerpc/include/asm/irqflags.h
arch/powerpc/include/asm/jump_label.h
arch/powerpc/include/asm/kasan.h
arch/powerpc/include/asm/kdump.h
arch/powerpc/include/asm/kexec.h
arch/powerpc/include/asm/kgdb.h
arch/powerpc/include/asm/kup.h
arch/powerpc/include/asm/kvm_asm.h
arch/powerpc/include/asm/kvm_book3s_asm.h
arch/powerpc/include/asm/kvm_booke_hv_asm.h
arch/powerpc/include/asm/lv1call.h
arch/powerpc/include/asm/mmu.h
arch/powerpc/include/asm/mpc52xx.h
arch/powerpc/include/asm/nohash/32/kup-8xx.h
arch/powerpc/include/asm/nohash/32/mmu-44x.h
arch/powerpc/include/asm/nohash/32/mmu-8xx.h
arch/powerpc/include/asm/nohash/32/pgtable.h
arch/powerpc/include/asm/nohash/32/pte-8xx.h
arch/powerpc/include/asm/nohash/64/pgtable-4k.h
arch/powerpc/include/asm/nohash/64/pgtable.h
arch/powerpc/include/asm/nohash/kup-booke.h
arch/powerpc/include/asm/nohash/mmu-e500.h
arch/powerpc/include/asm/nohash/pgtable.h
arch/powerpc/include/asm/nohash/pte-e500.h
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/opal.h
arch/powerpc/include/asm/page.h
arch/powerpc/include/asm/page_32.h
arch/powerpc/include/asm/page_64.h
arch/powerpc/include/asm/pgtable.h
arch/powerpc/include/asm/ppc_asm.h
arch/powerpc/include/asm/processor.h
arch/powerpc/include/asm/ptrace.h
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/reg_booke.h
arch/powerpc/include/asm/reg_fsl_emb.h
arch/powerpc/include/asm/setup.h
arch/powerpc/include/asm/smp.h
arch/powerpc/include/asm/spu_csa.h
arch/powerpc/include/asm/synch.h
arch/powerpc/include/asm/thread_info.h
arch/powerpc/include/asm/tm.h
arch/powerpc/include/asm/types.h
arch/powerpc/include/asm/unistd.h
arch/powerpc/include/asm/vdso.h
arch/powerpc/include/asm/vdso/getrandom.h
arch/powerpc/include/asm/vdso/gettimeofday.h
arch/powerpc/include/asm/vdso/processor.h
arch/powerpc/include/asm/vdso/vsyscall.h
arch/powerpc/include/asm/vdso_datapage.h
arch/powerpc/kernel/head_booke.h
arch/powerpc/net/bpf_jit.h
arch/powerpc/platforms/powernv/subcore.h
arch/powerpc/xmon/xmon_bpts.h
tools/testing/selftests/powerpc/include/instructions.h