Skip to content

Commit 3b1307e

Browse files
huthandreas-gaisler
authored andcommitted
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>
1 parent d6fb651 commit 3b1307e

55 files changed

Lines changed: 172 additions & 172 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/sparc/include/asm/adi_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <linux/types.h>
1111

12-
#ifndef __ASSEMBLY__
12+
#ifndef __ASSEMBLER__
1313

1414
struct adi_caps {
1515
__u64 blksz;
@@ -41,6 +41,6 @@ static inline unsigned long adi_nbits(void)
4141
return adi_state.caps.nbits;
4242
}
4343

44-
#endif /* __ASSEMBLY__ */
44+
#endif /* __ASSEMBLER__ */
4545

4646
#endif /* !(__ASM_SPARC64_ADI_H) */

arch/sparc/include/asm/auxio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
#ifndef ___ASM_SPARC_AUXIO_H
33
#define ___ASM_SPARC_AUXIO_H
44

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66

77
extern void __iomem *auxio_register;
88

9-
#endif /* ifndef __ASSEMBLY__ */
9+
#endif /* ifndef __ASSEMBLER__ */
1010

1111
#if defined(__sparc__) && defined(__arch64__)
1212
#include <asm/auxio_64.h>

arch/sparc/include/asm/auxio_32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define AUXIO_FLPY_EJCT 0x02 /* Eject floppy disk. Write only. */
3030
#define AUXIO_LED 0x01 /* On if set, off if unset. Read/Write */
3131

32-
#ifndef __ASSEMBLY__
32+
#ifndef __ASSEMBLER__
3333

3434
/*
3535
* NOTE: these routines are implementation dependent--
@@ -75,7 +75,7 @@ do { \
7575
} \
7676
} while (0)
7777

78-
#endif /* !(__ASSEMBLY__) */
78+
#endif /* !(__ASSEMBLER__) */
7979

8080

8181
/* AUXIO2 (Power Off Control) */

arch/sparc/include/asm/auxio_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
#define AUXIO_PCIO_CPWR_OFF 0x02 /* Courtesy Power Off */
7575
#define AUXIO_PCIO_SPWR_OFF 0x01 /* System Power Off */
7676

77-
#ifndef __ASSEMBLY__
77+
#ifndef __ASSEMBLER__
7878

7979
#define AUXIO_LTE_ON 1
8080
#define AUXIO_LTE_OFF 0
@@ -94,6 +94,6 @@ void auxio_set_lte(int on);
9494
*/
9595
void auxio_set_led(int on);
9696

97-
#endif /* ifndef __ASSEMBLY__ */
97+
#endif /* ifndef __ASSEMBLER__ */
9898

9999
#endif /* !(_SPARC64_AUXIO_H) */

arch/sparc/include/asm/cacheflush_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include <asm/page.h>
66

7-
#ifndef __ASSEMBLY__
7+
#ifndef __ASSEMBLER__
88

99
#include <linux/mm.h>
1010

@@ -78,6 +78,6 @@ void flush_ptrace_access(struct vm_area_struct *, struct page *,
7878
#define flush_cache_vmap_early(start, end) do { } while (0)
7979
#define flush_cache_vunmap(start, end) do { } while (0)
8080

81-
#endif /* !__ASSEMBLY__ */
81+
#endif /* !__ASSEMBLER__ */
8282

8383
#endif /* _SPARC64_CACHEFLUSH_H */

arch/sparc/include/asm/cpudata.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
#ifndef ___ASM_SPARC_CPUDATA_H
33
#define ___ASM_SPARC_CPUDATA_H
44

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66

77
#include <linux/threads.h>
88
#include <linux/percpu.h>
99

1010
extern const struct seq_operations cpuinfo_op;
1111

12-
#endif /* !(__ASSEMBLY__) */
12+
#endif /* !(__ASSEMBLER__) */
1313

1414
#if defined(__sparc__) && defined(__arch64__)
1515
#include <asm/cpudata_64.h>

arch/sparc/include/asm/cpudata_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef _SPARC64_CPUDATA_H
88
#define _SPARC64_CPUDATA_H
99

10-
#ifndef __ASSEMBLY__
10+
#ifndef __ASSEMBLER__
1111

1212
typedef struct {
1313
/* Dcache line 1 */
@@ -35,7 +35,7 @@ DECLARE_PER_CPU(cpuinfo_sparc, __cpu_data);
3535
#define cpu_data(__cpu) per_cpu(__cpu_data, (__cpu))
3636
#define local_cpu_data() (*this_cpu_ptr(&__cpu_data))
3737

38-
#endif /* !(__ASSEMBLY__) */
38+
#endif /* !(__ASSEMBLER__) */
3939

4040
#include <asm/trap_block.h>
4141

arch/sparc/include/asm/delay_64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
#ifndef _SPARC64_DELAY_H
88
#define _SPARC64_DELAY_H
99

10-
#ifndef __ASSEMBLY__
10+
#ifndef __ASSEMBLER__
1111

1212
void __delay(unsigned long loops);
1313
void udelay(unsigned long usecs);
1414
#define mdelay(n) udelay((n) * 1000)
1515

16-
#endif /* !__ASSEMBLY__ */
16+
#endif /* !__ASSEMBLER__ */
1717

1818
#endif /* _SPARC64_DELAY_H */

arch/sparc/include/asm/ftrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define MCOUNT_ADDR ((unsigned long)(_mcount))
77
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
88

9-
#ifndef __ASSEMBLY__
9+
#ifndef __ASSEMBLER__
1010
void _mcount(void);
1111
#endif
1212

arch/sparc/include/asm/hvtramp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#ifndef _SPARC64_HVTRAP_H
33
#define _SPARC64_HVTRAP_H
44

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66

77
#include <linux/types.h>
88

0 commit comments

Comments
 (0)