qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Riku Voipio <riku.voipio@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 00/13] linux-user: __{get, put}_user return value cleanup
Date: Mon, 9 Jun 2014 15:25:58 +0300	[thread overview]
Message-ID: <CAAqcGHmbB8ysRSy9TsXANoyMv0v4n=MO-xPtFq20urggg86HvQ@mail.gmail.com> (raw)
In-Reply-To: <CAFEAcA_1Urw43bDmOEXairbCa9gSZnQN+qm6Bn15eH0dnFOzRw@mail.gmail.com>

On 8 June 2014 00:40, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 6 June 2014 10:46,  <riku.voipio@linaro.org> wrote:
>> From: Riku Voipio <riku.voipio@linaro.org>
>>
>> This series is a cleanup and gcc-4.9 buildfix:
>>
>> linux-user/syscall.c: In function ‘host_to_target_stat64’:
>> linux-user/qemu.h:301:19: error: right-hand operand of comma expression has no
>> effect [-Werror=unused-value]
>>       ((hptr), (x)), 0)
>>
>> removing the unused 0 moves the bar:
>>
>> linux-user/main.c: In function ‘arm_kernel_cmpxchg64_helper’:
>> linux-user/qemu.h:330:15: error: void value not ignored as it ought to be
>>          __ret = __put_user((x), __hptr);    \
>>
>> And after fixing that, we see there is a lot of reading the return
>> value of __put_user and __get_user in signal.c. A lot of this code
>> has been copied from kernel, where the accessor functions might fail
>> Qemu uses different model of accessing. Access is already checked in
>> lock_user(), and thus __put/__get user cannot fail.
>>
>> So this patchset clears signal.c from reading __get_user and
>> __put_user return values, and then fixes the definitions of the macros.
>
> Other than the issue about ARM valid_user_regs(),
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

Ok, I've updated the two mentioned patches and added your reviewed-by.
I think instead of sending v3 round of the patches to the list, I'll
just send them in the linux-user pull req[1] - people are already
itching got gcc-4.9 builds. Even in the pull request people can still
comment if there are other issues with the patches.

Riku

[1] https://git.linaro.org/people/riku.voipio/qemu.git/shortlog/refs/heads/linux-user-for-upstream

      reply	other threads:[~2014-06-09 12:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06  9:46 [Qemu-devel] [PATCH v2 00/13] linux-user: __{get, put}_user return value cleanup riku.voipio
2014-06-07 21:40 ` Peter Maydell
2014-06-09 12:25   ` Riku Voipio [this message]

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='CAAqcGHmbB8ysRSy9TsXANoyMv0v4n=MO-xPtFq20urggg86HvQ@mail.gmail.com' \
    --to=riku.voipio@linaro.org \
    --cc=peter.maydell@linaro.org \
    --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 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).