ARM: tegra: Replace __ASSEMBLY__ with __ASSEMBLER__
Subsystems (3)
PATCH 1/1 ARM: tegra: Replace __ASSEMBLY__ with __ASSEMBLER__
From: Thomas Huth <[email protected]>
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 now on the __ASSEMBLER__ macro that is provided by the compilers.
This is a completely mechanical patch (done with a simple "sed -i" statement).
Signed-off-by Thomas Huth <[email protected]>
---
Note: This patch has been split from an earlier series of mine
to ease reviewing
arch/arm/mach-tegra/reset.h | 2 +- arch/arm/mach-tegra/sleep.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-tegra/reset.h +1 -1
@@ -21,7 +21,7 @@#define RESET_DATA (x) ((TEGRA_RESET_##x)*4) -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__#include "irammap.h"
arch/arm/mach-tegra/sleep.h +1 -1
@@ -38,7 +38,7 @@#define TEGRA_FLUSH_CACHE_LOUIS 0#define TEGRA_FLUSH_CACHE_ALL 1 -#ifdef __ASSEMBLY__ +#ifdef __ASSEMBLER__/* waits until the microsecond counter (base) is > rn */ .macro wait_until, rn, base, tmp add \rn, \rn, #1
Signature · 1 line
2.53.0