Skip to contentSkip to conversation

linux-headers: Remove the 32-bit arm headers

PATCH In review Thomas Huth 3 participants 3 messages Jul 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-headers: Remove the 32-bit arm headers

From: Thomas Huth <[email protected]>

KVM support for 32-bit arm has been dropped a while ago, so we don't need these headers in QEMU anymore.

Fixes 82bf7ae84ce ("target/arm: Remove KVM support for 32-bit Arm hosts")
---
 configure                             |   1 -
 linux-headers/asm-arm/bitsperlong.h   |   1 -
 linux-headers/asm-arm/kvm.h           | 312 --------------------
 linux-headers/asm-arm/mman.h          |   4 -
 linux-headers/asm-arm/unistd-common.h | 397 --------------------------
 linux-headers/asm-arm/unistd-eabi.h   |   5 -
 linux-headers/asm-arm/unistd-oabi.h   |  17 --
 linux-headers/asm-arm/unistd.h        |  41 ---
 scripts/update-linux-headers.sh       |   5 -
 9 files changed, 783 deletions(-)
 delete mode 100644 linux-headers/asm-arm/bitsperlong.h
 delete mode 100644 linux-headers/asm-arm/kvm.h
 delete mode 100644 linux-headers/asm-arm/mman.h
 delete mode 100644 linux-headers/asm-arm/unistd-common.h
 delete mode 100644 linux-headers/asm-arm/unistd-eabi.h
 delete mode 100644 linux-headers/asm-arm/unistd-oabi.h
 delete mode 100644 linux-headers/asm-arm/unistd.h
configure +0 -1
index 2b2b3d65979..95f67c1a827 100755
@@ -453,7 +453,6 @@ case "$cpu" in
   armv*b|armv*l|arm)
     cpu=arm
     host_arch=arm
-    linux_arch=arm
     ;;
 
   i386|i486|i586|i686)
linux-headers/asm-arm/bitsperlong.h deleted +0 -1
deleted file mode 100644
index 6dc0bb0c13b..00000000000
@@ -1 +0,0 @@
-#include <asm-generic/bitsperlong.h>
linux-headers/asm-arm/kvm.h deleted +0 -312

312 lines not on this page · raw message

linux-headers/asm-arm/mman.h deleted +0 -4
deleted file mode 100644
index 41f99c573b9..00000000000
@@ -1,4 +0,0 @@
-#include <asm-generic/mman.h>
-
-#define arch_mmap_check(addr, len, flags) \
-	(((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? -EINVAL : 0)
linux-headers/asm-arm/unistd-common.h deleted +0 -397

397 lines not on this page · raw message

linux-headers/asm-arm/unistd-eabi.h deleted +0 -5
deleted file mode 100644
index 266f1fcdfb3..00000000000
@@ -1,5 +0,0 @@
-#ifndef _ASM_ARM_UNISTD_EABI_H
-#define _ASM_ARM_UNISTD_EABI_H 1
-
-
-#endif /* _ASM_ARM_UNISTD_EABI_H */
linux-headers/asm-arm/unistd-oabi.h deleted +0 -17
deleted file mode 100644
index 47d9afb96d5..00000000000
@@ -1,17 +0,0 @@
-#ifndef _ASM_ARM_UNISTD_OABI_H
-#define _ASM_ARM_UNISTD_OABI_H 1
-
-#define __NR_time (__NR_SYSCALL_BASE + 13)
-#define __NR_umount (__NR_SYSCALL_BASE + 22)
-#define __NR_stime (__NR_SYSCALL_BASE + 25)
-#define __NR_alarm (__NR_SYSCALL_BASE + 27)
-#define __NR_utime (__NR_SYSCALL_BASE + 30)
-#define __NR_getrlimit (__NR_SYSCALL_BASE + 76)
-#define __NR_select (__NR_SYSCALL_BASE + 82)
-#define __NR_readdir (__NR_SYSCALL_BASE + 89)
-#define __NR_mmap (__NR_SYSCALL_BASE + 90)
-#define __NR_socketcall (__NR_SYSCALL_BASE + 102)
-#define __NR_syscall (__NR_SYSCALL_BASE + 113)
-#define __NR_ipc (__NR_SYSCALL_BASE + 117)
-
-#endif /* _ASM_ARM_UNISTD_OABI_H */
linux-headers/asm-arm/unistd.h deleted +0 -41

41 lines not on this page · raw message

scripts/update-linux-headers.sh +0 -5
index b43b8ef75a6..717c379f9e0 100755
@@ -156,11 +156,6 @@ EOF
         cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-s390/"
         cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-s390/"
     fi
-    if [ $arch = arm ]; then
-        cp "$hdrdir/include/asm/unistd-eabi.h" "$output/linux-headers/asm-arm/"
-        cp "$hdrdir/include/asm/unistd-oabi.h" "$output/linux-headers/asm-arm/"
-        cp "$hdrdir/include/asm/unistd-common.h" "$output/linux-headers/asm-arm/"
-    fi
     if [ $arch = arm64 ]; then
         cp "$hdrdir/include/asm/sve_context.h" "$output/linux-headers/asm-arm64/"
         cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-arm64/"
Signature · 1 line
2.50.0
Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · Thomas Huth

From: Thomas Huth <[email protected]>

KVM support for 32-bit arm has been dropped a while ago, so we don't need these headers in QEMU anymore.

Fixes 82bf7ae84ce ("target/arm: Remove KVM support for 32-bit Arm hosts")
---
 configure                             |   1 -
 linux-headers/asm-arm/bitsperlong.h   |   1 -
 linux-headers/asm-arm/kvm.h           | 312 --------------------
 linux-headers/asm-arm/mman.h          |   4 -
 linux-headers/asm-arm/unistd-common.h | 397 --------------------------
 linux-headers/asm-arm/unistd-eabi.h   |   5 -
 linux-headers/asm-arm/unistd-oabi.h   |  17 --
 linux-headers/asm-arm/unistd.h        |  41 ---
 scripts/update-linux-headers.sh       |   5 -
Quoted 8 lines
 9 files changed, 783 deletions(-)
 delete mode 100644 linux-headers/asm-arm/bitsperlong.h
 delete mode 100644 linux-headers/asm-arm/kvm.h
 delete mode 100644 linux-headers/asm-arm/mman.h
 delete mode 100644 linux-headers/asm-arm/unistd-common.h
 delete mode 100644 linux-headers/asm-arm/unistd-eabi.h
 delete mode 100644 linux-headers/asm-arm/unistd-oabi.h
 delete mode 100644 linux-headers/asm-arm/unistd.h
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 18 lines · Thomas Huth

From: Thomas Huth <[email protected]>

KVM support for 32-bit arm has been dropped a while ago, so we don't need these headers in QEMU anymore.

Fixes 82bf7ae84ce ("target/arm: Remove KVM support for 32-bit Arm hosts")
---
  configure                             |   1 -
  linux-headers/asm-arm/bitsperlong.h   |   1 -
  linux-headers/asm-arm/kvm.h           | 312 --------------------
  linux-headers/asm-arm/mman.h          |   4 -
  linux-headers/asm-arm/unistd-common.h | 397 --------------------------
  linux-headers/asm-arm/unistd-eabi.h   |   5 -
  linux-headers/asm-arm/unistd-oabi.h   |  17 --
  linux-headers/asm-arm/unistd.h        |  41 ---
  scripts/update-linux-headers.sh       |   5 -
  9 files changed, 783 deletions(-)
Quoted 7 lines

delete mode 100644 linux-headers/asm-arm/bitsperlong.h delete mode 100644 linux-headers/asm-arm/kvm.h delete mode 100644 linux-headers/asm-arm/mman.h delete mode 100644 linux-headers/asm-arm/unistd-common.h delete mode 100644 linux-headers/asm-arm/unistd-eabi.h delete mode 100644 linux-headers/asm-arm/unistd-oabi.h delete mode 100644 linux-headers/asm-arm/unistd.h

Nice.