qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <laurent@vivier.eu>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>,
	qemu-devel@nongnu.org, riku.voipio@iki.fi,
	peter.maydell@linaro.org, aurelien@aurel32.net,
	leon.alrae@imgtec.com, petar.jovanovic@imgtec.com,
	miodrag.dinic@imgtec.com, aleksandar.rikalo@imgtec.com,
	aleksandar.markovic@imgtec.com
Subject: Re: [Qemu-devel] [PATCH v7 1/7] linux-user: Fix TARGET_SIOCATMARK definition for Mips
Date: Tue, 20 Sep 2016 09:02:28 +0200	[thread overview]
Message-ID: <f298ee37-5605-1b51-d1a8-96b6b606bdb6@vivier.eu> (raw)
In-Reply-To: <20160919114456.66629-2-aleksandar.markovic@rt-rk.com>



Le 19/09/2016 à 13:44, Aleksandar Markovic a écrit :
> From: Aleksandar Markovic <aleksandar.markovic@imgtec.com>
> 
> This patch fixes wrong definition of TARGET_SIOCATMARK for mips,
> alpha, and sh4.
> 
> The current definition is:
> 
>   #define SIOCATMARK      0x8905
> 
> while the correct definition is:
> 
>   #define SIOCATMARK      TARGET_IOR('s', 7, int)
> 
> See Linux kernel source file arch/mips/include/uapi/asm/sockios.h#L19
> for reference.
> 
> This patch also a fixes LTP test failure for test sockioctl01, for
> mips, alpha, and sh4.
> 
> Signed-off-by: Aleksandar Rikalo <aleksandar.rikalo@imgtec.com>
> Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com>

Reviewed-by: Laurent Vivier <laurent@vivier.eu>

> ---
>  linux-user/syscall_defs.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
> index c0c9b58..605496d 100644
> --- a/linux-user/syscall_defs.h
> +++ b/linux-user/syscall_defs.h
> @@ -898,7 +898,11 @@ struct target_pollfd {
>  #define TARGET_KDSETLED        0x4B32	/* set led state [lights, not flags] */
>  #define TARGET_KDSIGACCEPT     0x4B4E
>  
> +#if defined(TARGET_ALPHA) || defined(TARGET_MIPS) || defined(TARGET_SH4)
> +#define TARGET_SIOCATMARK      TARGET_IOR('s', 7, int)
> +#else
>  #define TARGET_SIOCATMARK      0x8905
> +#endif
>  
>  /* Networking ioctls */
>  #define TARGET_SIOCADDRT       0x890B          /* add routing table entry */
> 

  reply	other threads:[~2016-09-20  7:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-19 11:44 [Qemu-devel] [PATCH v7 0/7] linux-user: Fix miscellaneous Mips-specific issues Aleksandar Markovic
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 1/7] linux-user: Fix TARGET_SIOCATMARK definition for Mips Aleksandar Markovic
2016-09-20  7:02   ` Laurent Vivier [this message]
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 2/7] linux-user: Fix TARGET_F_GETOWN " Aleksandar Markovic
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 3/7] linux-user: Fix structure target_flock " Aleksandar Markovic
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 4/7] linux-user: Fix structure target_semid64_ds " Aleksandar Markovic
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 5/7] linux-user: Fix certain argument alignment cases for Mips64 Aleksandar Markovic
2016-09-20  7:03   ` Laurent Vivier
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 6/7] linux-user: Add missing TARGET_EDQUOT error code for Mips Aleksandar Markovic
2016-09-19 11:44 ` [Qemu-devel] [PATCH v7 7/7] linux-user: Add missing Mips syscalls items in strace.list Aleksandar Markovic
2016-09-21 13:16 ` [Qemu-devel] [PATCH v7 0/7] linux-user: Fix miscellaneous Mips-specific issues Leon Alrae
2016-09-21 19:12   ` Riku Voipio
2016-09-22  6:24     ` Leon Alrae
2016-09-24 10:05       ` Riku Voipio
2016-09-24 10:07         ` Riku Voipio

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=f298ee37-5605-1b51-d1a8-96b6b606bdb6@vivier.eu \
    --to=laurent@vivier.eu \
    --cc=aleksandar.markovic@imgtec.com \
    --cc=aleksandar.markovic@rt-rk.com \
    --cc=aleksandar.rikalo@imgtec.com \
    --cc=aurelien@aurel32.net \
    --cc=leon.alrae@imgtec.com \
    --cc=miodrag.dinic@imgtec.com \
    --cc=petar.jovanovic@imgtec.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).