Skip to content

Commit 16464af

Browse files
huthguoren83
authored andcommitted
csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi header
__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. Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
1 parent 117c537 commit 16464af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

6-
#ifndef __ASSEMBLY__
6+
#ifndef __ASSEMBLER__
77

88
struct pt_regs {
99
unsigned long tls;
@@ -47,5 +47,5 @@ struct user_fp {
4747
unsigned long reserved;
4848
};
4949

50-
#endif /* __ASSEMBLY__ */
50+
#endif /* __ASSEMBLER__ */
5151
#endif /* _CSKY_PTRACE_H */

0 commit comments

Comments
 (0)