diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-03-14 08:10:05 +0100 |
|---|---|---|
| committer | Andreas Larsson <andreas@gaisler.com> | 2025-09-26 17:06:09 +0200 |
| commit | 3b1307e1cd1224a063a1791d213dfdd35b05a38a (patch) | |
| tree | 38ac65017f3f09a3844ae6fe48aa3e4014ccf2cf /drivers/char | |
| parent | d6fb6511de74bd0d4cb4cabddae9b31d533af1c1 (diff) | |
| download | linux-3b1307e1cd1224a063a1791d213dfdd35b05a38a.tar.gz linux-3b1307e1cd1224a063a1791d213dfdd35b05a38a.tar.bz2 linux-3b1307e1cd1224a063a1791d213dfdd35b05a38a.zip | |
sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers
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 a completely mechanical patch (done with a simple "sed -i"
statement).
Cc: David S. Miller <davem@davemloft.net>
Cc: Andreas Larsson <andreas@gaisler.com>
Cc: sparclinux@vger.kernel.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Diffstat (limited to 'drivers/char')
| -rw-r--r-- | drivers/char/hw_random/n2rng.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/hw_random/n2rng.h b/drivers/char/hw_random/n2rng.h index 9a870f5dc371..7612f15a261f 100644 --- a/drivers/char/hw_random/n2rng.h +++ b/drivers/char/hw_random/n2rng.h @@ -48,7 +48,7 @@ #define HV_RNG_NUM_CONTROL 4 -#ifndef __ASSEMBLY__ +#ifndef __ASSEMBLER__ extern unsigned long sun4v_rng_get_diag_ctl(void); extern unsigned long sun4v_rng_ctl_read_v1(unsigned long ctl_regs_ra, unsigned long *state, @@ -147,6 +147,6 @@ struct n2rng { #define N2RNG_BUSY_LIMIT 100 #define N2RNG_HCHECK_LIMIT 100 -#endif /* !(__ASSEMBLY__) */ +#endif /* !(__ASSEMBLER__) */ #endif /* _N2RNG_H */ |
