[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 25/30] linux-user/arm: Move target_oabi_flock64 out of target_stru
|
From: |
Laurent Vivier |
|
Subject: |
[PULL 25/30] linux-user/arm: Move target_oabi_flock64 out of target_structs.h |
|
Date: |
Tue, 11 Jan 2022 20:52:42 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Place it next to copy_from/to_user_oabi_flock64, the only users,
inside the existing target-specific ifdef. This leaves only
generic ipc structs in target_structs.h.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220107042600.149852-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
linux-user/arm/target_structs.h | 8 --------
linux-user/syscall.c | 8 ++++++++
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/linux-user/arm/target_structs.h b/linux-user/arm/target_structs.h
index 339b070bf1a5..25bf8dd3a5c9 100644
--- a/linux-user/arm/target_structs.h
+++ b/linux-user/arm/target_structs.h
@@ -48,12 +48,4 @@ struct target_shmid_ds {
abi_ulong __unused4;
abi_ulong __unused5;
};
-
-struct target_oabi_flock64 {
- abi_short l_type;
- abi_short l_whence;
- abi_llong l_start;
- abi_llong l_len;
- abi_int l_pid;
-} QEMU_PACKED;
#endif
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ce9d64896cb8..ca6e0b8fb0a1 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6927,6 +6927,14 @@ typedef abi_long from_flock64_fn(struct flock64 *fl,
abi_ulong target_addr);
typedef abi_long to_flock64_fn(abi_ulong target_addr, const struct flock64
*fl);
#if defined(TARGET_ARM) && TARGET_ABI_BITS == 32
+struct target_oabi_flock64 {
+ abi_short l_type;
+ abi_short l_whence;
+ abi_llong l_start;
+ abi_llong l_len;
+ abi_int l_pid;
+} QEMU_PACKED;
+
static inline abi_long copy_from_user_oabi_flock64(struct flock64 *fl,
abi_ulong target_flock_addr)
{
--
2.33.1
- [PULL 10/30] linux-user/i386: Use force_sig, force_sig_fault, (continued)
- [PULL 10/30] linux-user/i386: Use force_sig, force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 11/30] linux-user/m68k: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 15/30] linux-user/mips: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 07/30] linux-user: Remove TARGET_NSIGFPE, Laurent Vivier, 2022/01/11
- [PULL 17/30] target/mips: Extract trap code into env->error_code, Laurent Vivier, 2022/01/11
- [PULL 20/30] linux-user/riscv: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 21/30] linux-user/s390x: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 19/30] linux-user/ppc: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 23/30] linux-user/sparc: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 22/30] linux-user/sh4: Use force_sig_fault, Laurent Vivier, 2022/01/11
- [PULL 25/30] linux-user/arm: Move target_oabi_flock64 out of target_structs.h,
Laurent Vivier <=
- [PULL 29/30] linux-user: Implement PR_SET_PDEATHSIG, Laurent Vivier, 2022/01/11
- [PULL 28/30] linux-user: Map signal number in PR_GET_PDEATHSIG, Laurent Vivier, 2022/01/11
- [PULL 16/30] target/mips: Extract break code into env->error_code, Laurent Vivier, 2022/01/11
- Re: [PULL 00/30] Linux user for 7.0 patches, Peter Maydell, 2022/01/12