Skip to content

Commit d6fb651

Browse files
huthandreas-gaisler
authored andcommitted
sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code. 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 dc356bf commit d6fb651

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

arch/sparc/include/uapi/asm/ptrace.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
#define PT_REGS_MAGIC 0x57ac6c00
1717

18-
#ifndef __ASSEMBLY__
18+
#ifndef __ASSEMBLER__
1919

2020
#include <linux/types.h>
2121

@@ -88,7 +88,7 @@ struct sparc_trapf {
8888
unsigned long _unused;
8989
struct pt_regs *regs;
9090
};
91-
#endif /* (!__ASSEMBLY__) */
91+
#endif /* (!__ASSEMBLER__) */
9292
#else
9393
/* 32 bit sparc */
9494

@@ -97,7 +97,7 @@ struct sparc_trapf {
9797
/* This struct defines the way the registers are stored on the
9898
* stack during a system call and basically all traps.
9999
*/
100-
#ifndef __ASSEMBLY__
100+
#ifndef __ASSEMBLER__
101101

102102
#include <linux/types.h>
103103

@@ -125,19 +125,19 @@ struct sparc_stackf {
125125
unsigned long xargs[6];
126126
unsigned long xxargs[1];
127127
};
128-
#endif /* (!__ASSEMBLY__) */
128+
#endif /* (!__ASSEMBLER__) */
129129

130130
#endif /* (defined(__sparc__) && defined(__arch64__))*/
131131

132-
#ifndef __ASSEMBLY__
132+
#ifndef __ASSEMBLER__
133133

134134
#define TRACEREG_SZ sizeof(struct pt_regs)
135135
#define STACKFRAME_SZ sizeof(struct sparc_stackf)
136136

137137
#define TRACEREG32_SZ sizeof(struct pt_regs32)
138138
#define STACKFRAME32_SZ sizeof(struct sparc_stackf32)
139139

140-
#endif /* (!__ASSEMBLY__) */
140+
#endif /* (!__ASSEMBLER__) */
141141

142142
#define UREG_G0 0
143143
#define UREG_G1 1
@@ -161,30 +161,30 @@ struct sparc_stackf {
161161
#if defined(__sparc__) && defined(__arch64__)
162162
/* 64 bit sparc */
163163

164-
#ifndef __ASSEMBLY__
164+
#ifndef __ASSEMBLER__
165165

166166

167-
#else /* __ASSEMBLY__ */
167+
#else /* __ASSEMBLER__ */
168168
/* For assembly code. */
169169
#define TRACEREG_SZ 0xa0
170170
#define STACKFRAME_SZ 0xc0
171171

172172
#define TRACEREG32_SZ 0x50
173173
#define STACKFRAME32_SZ 0x60
174-
#endif /* __ASSEMBLY__ */
174+
#endif /* __ASSEMBLER__ */
175175

176176
#else /* (defined(__sparc__) && defined(__arch64__)) */
177177

178178
/* 32 bit sparc */
179179

180-
#ifndef __ASSEMBLY__
180+
#ifndef __ASSEMBLER__
181181

182182

183-
#else /* (!__ASSEMBLY__) */
183+
#else /* (!__ASSEMBLER__) */
184184
/* For assembly code. */
185185
#define TRACEREG_SZ 0x50
186186
#define STACKFRAME_SZ 0x60
187-
#endif /* (!__ASSEMBLY__) */
187+
#endif /* (!__ASSEMBLER__) */
188188

189189
#endif /* (defined(__sparc__) && defined(__arch64__)) */
190190

arch/sparc/include/uapi/asm/signal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
#define __old_sigaction32 sigaction32
106106
#endif
107107

108-
#ifndef __ASSEMBLY__
108+
#ifndef __ASSEMBLER__
109109

110110
typedef unsigned long __old_sigset_t; /* at least 32 bits */
111111

@@ -176,6 +176,6 @@ typedef struct sigaltstack {
176176
} stack_t;
177177

178178

179-
#endif /* !(__ASSEMBLY__) */
179+
#endif /* !(__ASSEMBLER__) */
180180

181181
#endif /* _UAPI__SPARC_SIGNAL_H */

arch/sparc/include/uapi/asm/traps.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#define NUM_SPARC_TRAPS 255
1212

13-
#ifndef __ASSEMBLY__
14-
#endif /* !(__ASSEMBLY__) */
13+
#ifndef __ASSEMBLER__
14+
#endif /* !(__ASSEMBLER__) */
1515

1616
/* For patching the trap table at boot time, we need to know how to
1717
* form various common Sparc instructions. Thus these macros...

arch/sparc/include/uapi/asm/utrap.h

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

4545
#define UTH_NOCHANGE (-1)
4646

47-
#ifndef __ASSEMBLY__
47+
#ifndef __ASSEMBLER__
4848
typedef int utrap_entry_t;
4949
typedef void *utrap_handler_t;
50-
#endif /* __ASSEMBLY__ */
50+
#endif /* __ASSEMBLER__ */
5151

5252
#endif /* !(__ASM_SPARC64_PROCESSOR_H) */

0 commit comments

Comments
 (0)