Skip to content

Commit 9b27182

Browse files
huthAlexander Gordeev
authored andcommitted
s390: 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 assembler code. Signed-off-by: Thomas Huth <[email protected]> Acked-by: Heiko Carstens <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexander Gordeev <[email protected]>
1 parent e04c78d commit 9b27182

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@
242242
#define PTRACE_OLDSETOPTIONS 21
243243
#define PTRACE_SYSEMU 31
244244
#define PTRACE_SYSEMU_SINGLESTEP 32
245-
#ifndef __ASSEMBLY__
245+
246+
#ifndef __ASSEMBLER__
246247
#include <linux/stddef.h>
247248
#include <linux/types.h>
248249

@@ -450,6 +451,6 @@ struct user_regs_struct {
450451
unsigned long ieee_instruction_pointer; /* obsolete, always 0 */
451452
};
452453

453-
#endif /* __ASSEMBLY__ */
454+
#endif /* __ASSEMBLER__ */
454455

455456
#endif /* _UAPI_S390_PTRACE_H */

arch/s390/include/uapi/asm/schid.h

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

55
#include <linux/types.h>
66

7-
#ifndef __ASSEMBLY__
7+
#ifndef __ASSEMBLER__
88

99
struct subchannel_id {
1010
__u32 cssid : 8;
@@ -15,6 +15,6 @@ struct subchannel_id {
1515
__u32 sch_no : 16;
1616
} __attribute__ ((packed, aligned(4)));
1717

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

2020
#endif /* _UAPIASM_SCHID_H */

arch/s390/include/uapi/asm/types.h

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

1111
#include <asm-generic/int-ll64.h>
1212

13-
#ifndef __ASSEMBLY__
13+
#ifndef __ASSEMBLER__
1414

1515
typedef unsigned long addr_t;
1616
typedef __signed__ long saddr_t;
@@ -25,6 +25,6 @@ typedef struct {
2525
};
2626
} __attribute__((packed, aligned(4))) __vector128;
2727

28-
#endif /* __ASSEMBLY__ */
28+
#endif /* __ASSEMBLER__ */
2929

3030
#endif /* _UAPI_S390_TYPES_H */

0 commit comments

Comments
 (0)