]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
s390: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
authorThomas Huth <thuth@redhat.com>
Wed, 11 Jun 2025 14:00:45 +0000 (16:00 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 16 Jun 2025 14:23:02 +0000 (16:23 +0200)
__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 <thuth@redhat.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20250611140046.137739-2-thuth@redhat.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/uapi/asm/ptrace.h
arch/s390/include/uapi/asm/schid.h
arch/s390/include/uapi/asm/types.h

index bb0826024bb95202fa035829567cc8ab53afe069..ea202072f1ad57a7e4af7f9f1c7ab53710b6eef9 100644 (file)
 #define PTRACE_OLDSETOPTIONS           21
 #define PTRACE_SYSEMU                  31
 #define PTRACE_SYSEMU_SINGLESTEP       32
-#ifndef __ASSEMBLY__
+
+#ifndef __ASSEMBLER__
 #include <linux/stddef.h>
 #include <linux/types.h>
 
@@ -450,6 +451,6 @@ struct user_regs_struct {
        unsigned long ieee_instruction_pointer; /* obsolete, always 0 */
 };
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #endif /* _UAPI_S390_PTRACE_H */
index a3e1cf16855348b5839200062df8ee05eae53468..d804d1a5b1b3fdbf1ba920257695eb37b82a43ae 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <linux/types.h>
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 struct subchannel_id {
        __u32 cssid : 8;
@@ -15,6 +15,6 @@ struct subchannel_id {
        __u32 sch_no : 16;
 } __attribute__ ((packed, aligned(4)));
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #endif /* _UAPIASM_SCHID_H */
index 84457dbb26b4a4bb136d069ecdf08af6faa55d12..4ab468c5032e3f2061bfda1d8cae85149e420409 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <asm-generic/int-ll64.h>
 
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
 
 typedef unsigned long addr_t;
 typedef __signed__ long saddr_t;
@@ -25,6 +25,6 @@ typedef struct {
        };
 } __attribute__((packed, aligned(4))) __vector128;
 
-#endif /* __ASSEMBLY__ */
+#endif /* __ASSEMBLER__ */
 
 #endif /* _UAPI_S390_TYPES_H */