qemu/linux-user
Riku Voipio a42267ef58 linux-user: fix gcc-4.9 compiler error on __{get,put]}_user
gcc-4.9 finds unused operand:

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)

Just removing the rh operand is no good, it will error in later:

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);    \

Thus, remove setting __ret from __get_user and __put_user, as and
set the right hand operand to (void)0 to make it clear that these
return never nothing.

This commit depends on the signal.c cleanup, to ensure bisectable
version history.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Cc: Richard Henderson <rth@twiddle.net>
2014-06-17 08:52:08 +03:00
..
aarch64 linux-user: AArch64: define TARGET_CLONE_BACKWARDS 2014-01-08 19:07:20 +00:00
alpha linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
arm linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
cris linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
i386 linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
m68k cpu: Move opaque field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00
microblaze linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
mips linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
mips64 linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
openrisc linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
ppc target-ppc: Support little-endian PPC64 in user mode. 2014-06-16 13:24:40 +02:00
s390x linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
sh4 linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
sparc linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
sparc64 linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
unicore32 linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
x86_64 linux-user: set minimum kernel version to 2.6.32 2014-03-10 13:55:00 +02:00
elfload.c linux-user: Tell guest about big host page sizes 2014-06-16 13:24:45 +02:00
errno_defs.h
flat.h
flatload.c linux-user: Remove regs parameter of load_elf_binary and load_flt_binary 2014-01-10 08:51:37 +02:00
ioctls.h linux-user: Implement BLKPG ioctl 2014-02-19 12:29:23 +02:00
linux_loop.h
linuxload.c cpu: Move opaque field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00
m68k-sim.c exec: Change cpu_abort() argument to CPUState 2014-03-13 19:52:28 +01:00
main.c target-ppc: Store Quadword Conditional Drops Size Bit 2014-06-16 13:24:40 +02:00
Makefile.objs linux-user: rename cpu-uname -> uname 2014-05-02 21:59:36 +03:00
mmap.c configure: Make NPTL non-optional 2013-07-22 21:54:52 +03:00
qemu.h linux-user: fix gcc-4.9 compiler error on __{get,put]}_user 2014-06-17 08:52:08 +03:00
signal.c signal/ppc/do_setcontext remove __get_user return check 2014-06-17 08:52:08 +03:00
socket.h linux-user: improve target_to_host_sock_type conversion 2013-07-05 15:45:40 +03:00
strace.c linux-user: Don't omit comma for strace of rt_sigaction() 2013-04-05 14:40:54 +02:00
strace.list [v2] linux-user: implement m68k atomic syscalls 2013-09-24 10:47:07 +03:00
syscall_defs.h linux-user: avoid using glibc internals in _syscall5 and in definition of target_sigevent struct 2014-05-02 21:59:28 +03:00
syscall_types.h linux-user: Implement BLKPG ioctl 2014-02-19 12:29:23 +02:00
syscall.c linux-user: fix getrusage and wait4 failures with invalid rusage struct 2014-05-05 15:21:05 +03:00
target_flat.h linux-user/FLAT: allow targets to override FLAT processing 2011-02-09 10:33:54 +02:00
uaccess.c
uname.c linux-user: remove configure option for setting uname release 2014-05-02 21:59:36 +03:00
uname.h linux-user: move uname functions to uname.c 2014-05-02 21:59:36 +03:00
vm86.c cpu: Move opaque field from CPU_COMMON to CPUState 2014-03-13 19:20:47 +01:00