qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 00/13] linux-user: __{get, put}_user return v


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2 00/13] linux-user: __{get, put}_user return value cleanup
Date: Sat, 7 Jun 2014 22:40:10 +0100

On 6 June 2014 10:46,  <address@hidden> wrote:
> From: Riku Voipio <address@hidden>
>
> 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 <address@hidden>

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]