Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 14 Mar 2017 16:44:04 -0400
From: "Tuan M. Hoang" <tmhoang@...tglobe.org>
To: musl@...ts.openwall.com
Subject: [PATCH] s390x: fix fpreg_t and remove unused per_struct

Including sys/procfs.h complains unknown type name 'fpreg_t' in bits/user.h. 
fpreg_t in bits/signal.h and elf_fpreg_t in bits/user.h are practically the 
same.
per_struct is never used, even conflicts with kernel header
https://github.com/torvalds/linux/blob/master/arch/s390/include/uapi/asm/ptrace.h

---
 arch/s390x/bits/user.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/s390x/bits/user.h b/arch/s390x/bits/user.h
index 90f07b7..17bce16 100644
--- a/arch/s390x/bits/user.h
+++ b/arch/s390x/bits/user.h
@@ -8,7 +8,7 @@ typedef union {
 
 typedef struct {
 	unsigned fpc;
-	fpreg_t fprs[16];
+	elf_fpreg_t fprs[16];
 } elf_fpregset_t;
 
 #define ELF_NGREG 27
@@ -32,7 +32,7 @@ struct _user_per_struct {
 	unsigned short perc_atmid;
 	unsigned long address;
 	unsigned char access_id;
-} per_struct;
+};
 
 struct _user_regs_struct {
 	struct _user_psw_struct psw;
-- 
2.11.0

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.