From dd6e8af6ba1b8a95a7f1dc7422e5ea4ccc7fbd93 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 6 Jan 2015 07:59:04 -0500 Subject: powerpc: Fix compiler warning on some syscalls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 5.0 emits an warning when using sizeof on array function parameters and powerpc internal syscall macros add a check for such cases. More specifically, on powerpc64 and powerpc32 sysdep.h: if (__builtin_classify_type (__arg3) != 5 && sizeof (__arg3) > 8) \ __illegally_sized_syscall_arg3 (); \ And for sysdeps/unix/sysv/linux/utimensat.c build GCC emits: error: ‘sizeof’ on array function parameter ‘tsp’ will return size of ‘const struct timespec *’ This patch uses the address of first struct member instead of the struct itself in syscall macro. --- ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 9066946203..962ec26550 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2015-01-08 Adhemerval Zanella + + * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first + timespec struct member in syscall macro. + * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise. + * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of + first timeval struct member in syscall macro. + * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise. + 2015-01-07 Joseph Myers [BZ #17748] -- cgit v1.2.3