mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] s390x: fix fpreg_t and remove unused per_struct
@ 2017-03-14 20:44 Tuan M. Hoang
  0 siblings, 0 replies; only message in thread
From: Tuan M. Hoang @ 2017-03-14 20:44 UTC (permalink / raw)
  To: musl

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-14 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-14 20:44 [PATCH] s390x: fix fpreg_t and remove unused per_struct Tuan M. Hoang

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).