Skip to content

Commit cccaea1

Browse files
huthhdeller
authored andcommitted
parisc: 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 mostly a completely mechanical patch (done with a simple "sed -i" statement), except for some manual tweaks in the files arch/parisc/include/asm/smp.h, arch/parisc/include/asm/signal.h, arch/parisc/include/asm/thread_info.h and arch/parisc/include/asm/vdso.h that had the macro spelled in a wrong way. Cc: "James E.J. Bottomley" <[email protected]> Cc: Helge Deller <[email protected]> Cc: [email protected] Signed-off-by: Thomas Huth <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent e2b6a18 commit cccaea1

26 files changed

+55
-55
lines changed

arch/parisc/include/asm/alternative.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define INSN_PxTLB 0x02 /* modify pdtlb, pitlb */
1414
#define INSN_NOP 0x08000240 /* nop */
1515

16-
#ifndef __ASSEMBLY__
16+
#ifndef __ASSEMBLER__
1717

1818
#include <linux/init.h>
1919
#include <linux/types.h>
@@ -61,6 +61,6 @@ void apply_alternatives(struct alt_instr *start, struct alt_instr *end,
6161
.word (new_instr_ptr - .) ! \
6262
.previous
6363

64-
#endif /* __ASSEMBLY__ */
64+
#endif /* __ASSEMBLER__ */
6565

6666
#endif /* __ASM_PARISC_ALTERNATIVE_H */

arch/parisc/include/asm/assembly.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#define SR_TEMP2 2
5454
#define SR_USER 3
5555

56-
#ifdef __ASSEMBLY__
56+
#ifdef __ASSEMBLER__
5757

5858
#ifdef CONFIG_64BIT
5959
#define LDREG ldd
@@ -582,5 +582,5 @@
582582
.previous
583583

584584

585-
#endif /* __ASSEMBLY__ */
585+
#endif /* __ASSEMBLER__ */
586586
#endif

arch/parisc/include/asm/barrier.h

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

55
#include <asm/alternative.h>
66

7-
#ifndef __ASSEMBLY__
7+
#ifndef __ASSEMBLER__
88

99
/* The synchronize caches instruction executes as a nop on systems in
1010
which all memory references are performed in order. */
@@ -93,5 +93,5 @@ do { \
9393
})
9494
#include <asm-generic/barrier.h>
9595

96-
#endif /* !__ASSEMBLY__ */
96+
#endif /* !__ASSEMBLER__ */
9797
#endif /* __ASM_BARRIER_H */

arch/parisc/include/asm/cache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define L1_CACHE_BYTES 16
1717
#define L1_CACHE_SHIFT 4
1818

19-
#ifndef __ASSEMBLY__
19+
#ifndef __ASSEMBLER__
2020

2121
#define SMP_CACHE_BYTES L1_CACHE_BYTES
2222

@@ -66,7 +66,7 @@ void parisc_setup_cache_timing(void);
6666
ALTERNATIVE(ALT_COND_NO_IOC_FDC, INSN_NOP) :::"memory")
6767
#define asm_syncdma() asm volatile("syncdma" :::"memory")
6868

69-
#endif /* ! __ASSEMBLY__ */
69+
#endif /* ! __ASSEMBLER__ */
7070

7171
/* Classes of processor wrt: disabling space register hashing */
7272

arch/parisc/include/asm/current.h

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

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66
struct task_struct;
77

88
static __always_inline struct task_struct *get_current(void)
@@ -16,6 +16,6 @@ static __always_inline struct task_struct *get_current(void)
1616

1717
#define current get_current()
1818

19-
#endif /* __ASSEMBLY__ */
19+
#endif /* __ASSEMBLER__ */
2020

2121
#endif /* _ASM_PARISC_CURRENT_H */

arch/parisc/include/asm/dwarf.h

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

9-
#ifdef __ASSEMBLY__
9+
#ifdef __ASSEMBLER__
1010

1111
#define CFI_STARTPROC .cfi_startproc
1212
#define CFI_ENDPROC .cfi_endproc
@@ -15,6 +15,6 @@
1515
#define CFI_REL_OFFSET .cfi_rel_offset
1616
#define CFI_UNDEFINED .cfi_undefined
1717

18-
#endif /* __ASSEMBLY__ */
18+
#endif /* __ASSEMBLER__ */
1919

2020
#endif /* _ASM_PARISC_DWARF_H */

arch/parisc/include/asm/fixmap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#define KERNEL_MAP_START (GATEWAY_PAGE_SIZE)
4040
#define KERNEL_MAP_END (FIXMAP_START)
4141

42-
#ifndef __ASSEMBLY__
42+
#ifndef __ASSEMBLER__
4343

4444

4545
enum fixed_addresses {
@@ -59,6 +59,6 @@ extern void *parisc_vmalloc_start;
5959
void set_fixmap(enum fixed_addresses idx, phys_addr_t phys);
6060
void clear_fixmap(enum fixed_addresses idx);
6161

62-
#endif /*__ASSEMBLY__*/
62+
#endif /*__ASSEMBLER__*/
6363

6464
#endif /*_ASM_FIXMAP_H*/

arch/parisc/include/asm/ftrace.h

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

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66
extern void mcount(void);
77

88
#define MCOUNT_ADDR ((unsigned long)mcount)
@@ -29,6 +29,6 @@ unsigned long ftrace_call_adjust(unsigned long addr);
2929

3030
#define ftrace_return_address(n) return_address(n)
3131

32-
#endif /* __ASSEMBLY__ */
32+
#endif /* __ASSEMBLER__ */
3333

3434
#endif /* _ASM_PARISC_FTRACE_H */

arch/parisc/include/asm/jump_label.h

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

5-
#ifndef __ASSEMBLY__
5+
#ifndef __ASSEMBLER__
66

77
#include <linux/types.h>
88
#include <linux/stringify.h>
@@ -44,5 +44,5 @@ static __always_inline bool arch_static_branch_jump(struct static_key *key, bool
4444
return true;
4545
}
4646

47-
#endif /* __ASSEMBLY__ */
47+
#endif /* __ASSEMBLER__ */
4848
#endif

arch/parisc/include/asm/kexec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define KEXEC_ARCH KEXEC_ARCH_PARISC
1515
#define ARCH_HAS_KIMAGE_ARCH
1616

17-
#ifndef __ASSEMBLY__
17+
#ifndef __ASSEMBLER__
1818

1919
struct kimage_arch {
2020
unsigned long initrd_start;
@@ -28,6 +28,6 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
2828
/* Dummy implementation for now */
2929
}
3030

31-
#endif /* __ASSEMBLY__ */
31+
#endif /* __ASSEMBLER__ */
3232

3333
#endif /* _ASM_PARISC_KEXEC_H */

0 commit comments

Comments
 (0)