[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 4/8] linux-headers: Add unistd_64.h
From: |
Song Gao |
Subject: |
[PULL v2 4/8] linux-headers: Add unistd_64.h |
Date: |
Sat, 2 Nov 2024 15:47:33 +0800 |
From: Bibo Mao <maobibo@loongson.cn>
since 6.11, unistd.h includes header file unistd_64.h directly on
some platforms, here add unistd_64.h on these platforms. Affected
platforms are ARM64, LoongArch64 and Riscv. Otherwise there will
be compiling error such as:
linux-headers/asm/unistd.h:3:10: fatal error: asm/unistd_64.h: No such file or
directory
#include <asm/unistd_64.h>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20241028023809.1554405-2-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
scripts/update-linux-headers.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index c34ac6454e..203f48d089 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -163,6 +163,7 @@ EOF
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/"
fi
if [ $arch = x86 ]; then
cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-x86/"
@@ -185,6 +186,11 @@ EOF
fi
if [ $arch = riscv ]; then
cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
+ cp "$hdrdir/include/asm/unistd_32.h" "$output/linux-headers/asm-riscv/"
+ cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-riscv/"
+ fi
+ if [ $arch = loongarch ]; then
+ cp "$hdrdir/include/asm/unistd_64.h"
"$output/linux-headers/asm-loongarch/"
fi
done
arch=
--
2.34.1
- [PULL v2 0/8] loongarch-to-apply queue, Song Gao, 2024/11/02
- [PULL v2 3/8] target/loongarch/kvm: Implement LoongArch PMU extension, Song Gao, 2024/11/02
- [PULL v2 2/8] target/loongarch: Implement lbt registers save/restore function, Song Gao, 2024/11/02
- [PULL v2 5/8] linux-headers: loongarch: Add kvm_para.h, Song Gao, 2024/11/02
- [PULL v2 4/8] linux-headers: Add unistd_64.h,
Song Gao <=
- [PULL v2 7/8] hw/loongarch/boot: Use warn_report when no kernel filename, Song Gao, 2024/11/02
- [PULL v2 8/8] target/loongarch: Add steal time support on migration, Song Gao, 2024/11/02
- [PULL v2 1/8] target/loongarch: Add loongson binary translation feature, Song Gao, 2024/11/02
- [PULL v2 6/8] linux-headers: Update to Linux v6.12-rc5, Song Gao, 2024/11/02
- Re: [PULL v2 0/8] loongarch-to-apply queue, Peter Maydell, 2024/11/04