Re: [PATCH 19/41] mips: Replace __ASSEMBLY__ with __ASSEMBLER__ in the mips headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14/3/25 08:09, Thomas Huth wrote:
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 is almost a completely mechanical patch (done with a simple
"sed -i" statement), with just one comment tweaked manually in
arch/mips/include/asm/cpu.h (that was missing some underscores).

Cc: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>
Cc: linux-mips@xxxxxxxxxxxxxxx
Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
---
  arch/mips/include/asm/addrspace.h            |  4 +--
  arch/mips/include/asm/asm-eva.h              |  6 ++--
  arch/mips/include/asm/asm.h                  |  8 ++---
  arch/mips/include/asm/bmips.h                |  4 +--
  arch/mips/include/asm/cpu.h                  |  4 +--
  arch/mips/include/asm/dec/ecc.h              |  2 +-
  arch/mips/include/asm/dec/interrupts.h       |  4 +--
  arch/mips/include/asm/dec/kn01.h             |  2 +-
  arch/mips/include/asm/dec/kn02.h             |  2 +-
  arch/mips/include/asm/dec/kn02xa.h           |  2 +-
  arch/mips/include/asm/eva.h                  |  4 +--
  arch/mips/include/asm/ftrace.h               |  4 +--
  arch/mips/include/asm/hazards.h              |  4 +--
  arch/mips/include/asm/irqflags.h             |  4 +--
  arch/mips/include/asm/jazz.h                 | 16 ++++-----
  arch/mips/include/asm/jump_label.h           |  4 +--
  arch/mips/include/asm/linkage.h              |  2 +-
  arch/mips/include/asm/mach-generic/spaces.h  |  4 +--
  arch/mips/include/asm/mips-boards/bonito64.h |  4 +--
  arch/mips/include/asm/mipsmtregs.h           |  6 ++--
  arch/mips/include/asm/mipsregs.h             |  6 ++--
  arch/mips/include/asm/msa.h                  |  4 +--
  arch/mips/include/asm/pci/bridge.h           |  4 +--
  arch/mips/include/asm/pm.h                   |  6 ++--
  arch/mips/include/asm/prefetch.h             |  2 +-
  arch/mips/include/asm/regdef.h               |  4 +--
  arch/mips/include/asm/sibyte/board.h         |  4 +--
  arch/mips/include/asm/sibyte/sb1250.h        |  2 +-
  arch/mips/include/asm/sibyte/sb1250_defs.h   |  6 ++--
  arch/mips/include/asm/smp-cps.h              |  6 ++--
  arch/mips/include/asm/sn/addrs.h             | 18 +++++-----
  arch/mips/include/asm/sn/gda.h               |  4 +--
  arch/mips/include/asm/sn/kldir.h             |  4 +--
  arch/mips/include/asm/sn/klkernvars.h        |  4 +--
  arch/mips/include/asm/sn/launch.h            |  4 +--
  arch/mips/include/asm/sn/nmi.h               |  8 ++---
  arch/mips/include/asm/sn/sn0/addrs.h         | 14 ++++----
  arch/mips/include/asm/sn/sn0/hub.h           |  2 +-
  arch/mips/include/asm/sn/sn0/hubio.h         | 36 ++++++++++----------
  arch/mips/include/asm/sn/sn0/hubmd.h         |  4 +--
  arch/mips/include/asm/sn/sn0/hubni.h         |  6 ++--
  arch/mips/include/asm/sn/sn0/hubpi.h         |  4 +--
  arch/mips/include/asm/sn/types.h             |  2 +-
  arch/mips/include/asm/sync.h                 |  2 +-
  arch/mips/include/asm/thread_info.h          |  4 +--
  arch/mips/include/asm/unistd.h               |  4 +--
  arch/mips/include/asm/vdso/gettimeofday.h    |  4 +--
  arch/mips/include/asm/vdso/processor.h       |  4 +--
  arch/mips/include/asm/vdso/vdso.h            |  4 +--
  arch/mips/include/asm/vdso/vsyscall.h        |  4 +--
  arch/mips/include/asm/xtalk/xtalk.h          |  4 +--
  arch/mips/include/asm/xtalk/xwidget.h        |  4 +--
  drivers/soc/bcm/brcmstb/pm/pm.h              |  2 +-
  53 files changed, 140 insertions(+), 140 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>





[Index of Archives]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux