From: Laurent Vivier <laurent@vivier.eu>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
qemu-devel@nongnu.org
Cc: amarkovic@wavecomp.com
Subject: Re: [Qemu-devel] [PATCH v14 3/5] linux-user: Fix flock structure for MIPS O64 ABI
Date: Thu, 27 Jun 2019 19:08:04 +0200 [thread overview]
Message-ID: <0a6e8362-6096-a56b-0d7c-8ead12cd157a@vivier.eu> (raw)
In-Reply-To: <1561649510-21183-4-git-send-email-aleksandar.markovic@rt-rk.com>
Le 27/06/2019 à 17:31, Aleksandar Markovic a écrit :
> From: Aleksandar Markovic <amarkovic@wavecomp.com>
>
> Only MIPS O32 and N32 have special (different than other
> architectures) definition of structure flock in kernel.
>
> Bring flock definition for MIPS O64 ABI to the correct state,
> which is currently different than the most common definition,
> and it should be the same.
>
> Reported-by: Dragan Mladjenovic <dmladjenovic@wavecomp.com>
> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
> ---
> linux-user/generic/fcntl.h | 2 +-
> linux-user/mips/target_fcntl.h | 4 ++++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/linux-user/generic/fcntl.h b/linux-user/generic/fcntl.h
> index a775a49..1b48dde 100644
> --- a/linux-user/generic/fcntl.h
> +++ b/linux-user/generic/fcntl.h
> @@ -129,7 +129,7 @@ struct target_flock {
> short l_whence;
> abi_long l_start;
> abi_long l_len;
> -#if defined(TARGET_MIPS)
> +#if defined(TARGET_MIPS) && (TARGET_ABI_BITS == 32)
> abi_long l_sysid;
> #endif
> int l_pid;
> diff --git a/linux-user/mips/target_fcntl.h b/linux-user/mips/target_fcntl.h
> index 000527c..795bba7 100644
> --- a/linux-user/mips/target_fcntl.h
> +++ b/linux-user/mips/target_fcntl.h
> @@ -27,7 +27,11 @@
> #define TARGET_F_SETOWN 24 /* for sockets. */
> #define TARGET_F_GETOWN 23 /* for sockets. */
>
> +#if (TARGET_ABI_BITS == 32)
> #define TARGET_ARCH_FLOCK_PAD abi_long pad[4];
> +#else
> +#define TARGET_ARCH_FLOCK_PAD
> +#endif
> #define TARGET_ARCH_FLOCK64_PAD
>
> #define TARGET_F_GETLK64 33 /* using 'struct flock64' */
>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
next prev parent reply other threads:[~2019-06-27 17:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-27 15:31 [Qemu-devel] [PATCH v14 0/5] linux-user: A set of miscellaneous patches Aleksandar Markovic
2019-06-27 15:31 ` [Qemu-devel] [PATCH v14 1/5] linux-user: Add support for translation of statx() syscall Aleksandar Markovic
2019-06-27 17:07 ` Laurent Vivier
2019-06-27 15:31 ` [Qemu-devel] [PATCH v14 2/5] linux-user: Add support for strace for " Aleksandar Markovic
2019-06-27 15:31 ` [Qemu-devel] [PATCH v14 3/5] linux-user: Fix flock structure for MIPS O64 ABI Aleksandar Markovic
2019-06-27 17:08 ` Laurent Vivier [this message]
2019-06-27 15:31 ` [Qemu-devel] [PATCH v14 4/5] linux-user: Introduce TARGET_HAVE_ARCH_STRUCT_FLOCK Aleksandar Markovic
2019-06-27 17:11 ` Laurent Vivier
2019-06-27 15:31 ` [Qemu-devel] [PATCH v14 5/5] linux-user: Handle EXCP_FPE properly for MIPS Aleksandar Markovic
2019-06-27 17:17 ` Laurent Vivier
2019-06-27 17:57 ` [Qemu-devel] [PATCH v14 0/5] linux-user: A set of miscellaneous patches no-reply
2019-06-27 18:48 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0a6e8362-6096-a56b-0d7c-8ead12cd157a@vivier.eu \
--to=laurent@vivier.eu \
--cc=aleksandar.markovic@rt-rk.com \
--cc=amarkovic@wavecomp.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.