Skip to contentSkip to conversation

x86: Remove ia32_unistd.h

PATCH Applied Brian Gerst 2 participants 5 messages Mar 21, 2024 – Mar 22, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover x86: Remove ia32_unistd.h

Besides containing one unused macro, ia32_unistd.h is simply a leftover wrapper for unistd_32_ia32.h. Remove it.

Brian Gerst (2):
x86/syscall/compat: Remove unused macro __SYSCALL_ia32_NR x86/syscall/compat: Remove ia32_unistd.h

 arch/x86/entry/entry_64_compat.S   |  1 -
 arch/x86/include/asm/ia32_unistd.h | 12 ------------
 arch/x86/include/asm/seccomp.h     |  2 +-
 arch/x86/kernel/signal_32.c        |  2 +-
 4 files changed, 2 insertions(+), 15 deletions(-)
 delete mode 100644 arch/x86/include/asm/ia32_unistd.h

base-commit: 93387dba36cc9033724d8b874a5cf6779ef084ab

Signature · 1 line
2.44.0
#1 lore raw

PATCH 1/2 x86/syscall/compat: Remove unused macro __SYSCALL_ia32_NR

---
 arch/x86/include/asm/ia32_unistd.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/include/asm/ia32_unistd.h +0 -1
index aa065c94ccf5..7bcb82951c11 100644
@@ -6,7 +6,6 @@
  * This file contains the system call numbers of the ia32 compat ABI,
  * this is for the kernel only.
  */
-#define __SYSCALL_ia32_NR(x) (x)
 #include <asm/unistd_32_ia32.h>
 
 #endif /* _ASM_X86_IA32_UNISTD_H */
Signature · 1 line
2.44.0
merge bot Applied
#2 lore raw

[tip: x86/cleanups] x86/syscall/compat: Remove unused macro __SYSCALL_ia32_NR

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     9342164635f86eefbe01258fcfb597945e7ab5a4
Gitweb:        https://git.kernel.org/tip/9342164635f86eefbe01258fcfb597945e7ab5a4
Author:        Brian Gerst <[email protected]>
AuthorDate:    Thu, 21 Mar 2024 17:18:46 -04:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 22 Mar 2024 09:37:09 +01:00

x86/syscall/compat: Remove unused macro __SYSCALL_ia32_NR

---
 arch/x86/include/asm/ia32_unistd.h | 1 -
 1 file changed, 1 deletion(-)
arch/x86/include/asm/ia32_unistd.h +0 -1
index aa065c9..7bcb829 100644
@@ -6,7 +6,6 @@
  * This file contains the system call numbers of the ia32 compat ABI,
  * this is for the kernel only.
  */
-#define __SYSCALL_ia32_NR(x) (x)
 #include <asm/unistd_32_ia32.h>
 
 #endif /* _ASM_X86_IA32_UNISTD_H */
#3 lore raw

PATCH 2/2 x86/syscall/compat: Remove ia32_unistd.h

In reply to Brian Gerst

This header is now just a wrapper for unistd_32_ia32.h.

---
 arch/x86/entry/entry_64_compat.S   |  1 -
 arch/x86/include/asm/ia32_unistd.h | 11 -----------
 arch/x86/include/asm/seccomp.h     |  2 +-
 arch/x86/kernel/signal_32.c        |  2 +-
 4 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 arch/x86/include/asm/ia32_unistd.h
arch/x86/entry/entry_64_compat.S +0 -1
index eabf48c4d4b4..49cc4b8cfbb5 100644
@@ -7,7 +7,6 @@
 #include <asm/asm-offsets.h>
 #include <asm/current.h>
 #include <asm/errno.h>
-#include <asm/ia32_unistd.h>
 #include <asm/thread_info.h>
 #include <asm/segment.h>
 #include <asm/irqflags.h>
arch/x86/include/asm/ia32_unistd.h deleted +0 -11
deleted file mode 100644
index 7bcb82951c11..000000000000
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_X86_IA32_UNISTD_H
-#define _ASM_X86_IA32_UNISTD_H
-
-/*
- * This file contains the system call numbers of the ia32 compat ABI,
- * this is for the kernel only.
- */
-#include <asm/unistd_32_ia32.h>
-
-#endif /* _ASM_X86_IA32_UNISTD_H */
arch/x86/include/asm/seccomp.h +1 -1
index fef16e398161..42bcd42d70d1 100644
@@ -9,7 +9,7 @@
 #endif
 
 #ifdef CONFIG_COMPAT
-#include <asm/ia32_unistd.h>
+#include <asm/unistd_32_ia32.h>
 #define __NR_seccomp_read_32		__NR_ia32_read
 #define __NR_seccomp_write_32		__NR_ia32_write
 #define __NR_seccomp_exit_32		__NR_ia32_exit
arch/x86/kernel/signal_32.c +1 -1
index c12624bc82a3..ef654530bf5a 100644
@@ -34,7 +34,7 @@
 #include <asm/gsseg.h>
 
 #ifdef CONFIG_IA32_EMULATION
-#include <asm/ia32_unistd.h>
+#include <asm/unistd_32_ia32.h>
 
 static inline void reload_segments(struct sigcontext_32 *sc)
 {
Signature · 1 line
2.44.0
merge bot Applied
#4 lore raw

[tip: x86/cleanups] x86/syscall/compat: Remove ia32_unistd.h

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     e2d168328e3bdd21efa2ba34392f620ce58d2914
Gitweb:        https://git.kernel.org/tip/e2d168328e3bdd21efa2ba34392f620ce58d2914
Author:        Brian Gerst <[email protected]>
AuthorDate:    Thu, 21 Mar 2024 17:18:47 -04:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Fri, 22 Mar 2024 09:37:09 +01:00

x86/syscall/compat: Remove ia32_unistd.h

This header is now just a wrapper for unistd_32_ia32.h.

---
 arch/x86/entry/entry_64_compat.S   |  1 -
 arch/x86/include/asm/ia32_unistd.h | 11 -----------
 arch/x86/include/asm/seccomp.h     |  2 +-
 arch/x86/kernel/signal_32.c        |  2 +-
 4 files changed, 2 insertions(+), 14 deletions(-)
 delete mode 100644 arch/x86/include/asm/ia32_unistd.h
arch/x86/entry/entry_64_compat.S +0 -1
index eabf48c..49cc4b8 100644
@@ -7,7 +7,6 @@
 #include <asm/asm-offsets.h>
 #include <asm/current.h>
 #include <asm/errno.h>
-#include <asm/ia32_unistd.h>
 #include <asm/thread_info.h>
 #include <asm/segment.h>
 #include <asm/irqflags.h>
arch/x86/include/asm/ia32_unistd.h deleted +0 -11
deleted file mode 100644
index 7bcb829..0000000
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _ASM_X86_IA32_UNISTD_H
-#define _ASM_X86_IA32_UNISTD_H
-
-/*
- * This file contains the system call numbers of the ia32 compat ABI,
- * this is for the kernel only.
- */
-#include <asm/unistd_32_ia32.h>
-
-#endif /* _ASM_X86_IA32_UNISTD_H */
arch/x86/include/asm/seccomp.h +1 -1
index fef16e3..42bcd42 100644
@@ -9,7 +9,7 @@
 #endif
 
 #ifdef CONFIG_COMPAT
-#include <asm/ia32_unistd.h>
+#include <asm/unistd_32_ia32.h>
 #define __NR_seccomp_read_32		__NR_ia32_read
 #define __NR_seccomp_write_32		__NR_ia32_write
 #define __NR_seccomp_exit_32		__NR_ia32_exit
arch/x86/kernel/signal_32.c +1 -1
index c12624b..ef65453 100644
@@ -34,7 +34,7 @@
 #include <asm/gsseg.h>
 
 #ifdef CONFIG_IA32_EMULATION
-#include <asm/ia32_unistd.h>
+#include <asm/unistd_32_ia32.h>
 
 static inline void reload_segments(struct sigcontext_32 *sc)
 {