diff mbox

[V2,01/12] linux-user: PPC64 semid_ds Doesnt Include _unused1 and _unused2

Message ID 1407869623-11185-2-git-send-email-tommusta@gmail.com
State New
Headers show

Commit Message

Tom Musta Aug. 12, 2014, 6:53 p.m. UTC
The 64 bit PowerPC platforms eliminate the _unused1 and _unused2
elements of the semid_ds structure from <sys/sem.h>.  So eliminate
these from the target_semid_ds structure.

Signed-off-by: Tom Musta <tommusta@gmail.com>
---

 linux-user/syscall.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Comments

David Gibson Aug. 26, 2014, 12:20 a.m. UTC | #1
On Tue, Aug 12, 2014 at 01:53:32PM -0500, Tom Musta wrote:
> The 64 bit PowerPC platforms eliminate the _unused1 and _unused2
> elements of the semid_ds structure from <sys/sem.h>.  So eliminate
> these from the target_semid_ds structure.
> 
> Signed-off-by: Tom Musta <tommusta@gmail.com>

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
diff mbox

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a50229d..540001c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2419,9 +2419,13 @@  struct target_semid_ds
 {
   struct target_ipc_perm sem_perm;
   abi_ulong sem_otime;
+#if !defined(TARGET_PPC64)
   abi_ulong __unused1;
+#endif
   abi_ulong sem_ctime;
+#if !defined(TARGET_PPC64)
   abi_ulong __unused2;
+#endif
   abi_ulong sem_nsems;
   abi_ulong __unused3;
   abi_ulong __unused4;