From: "Tuan M. Hoang" <tmhoang@flatglobe.org>
To: musl@lists.openwall.com
Subject: [PATCH] s390x: fix fpreg_t and remove unused per_struct
Date: Tue, 14 Mar 2017 16:44:04 -0400 [thread overview]
Message-ID: <20170314204404.13196-1-tmhoang@flatglobe.org> (raw)
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
reply other threads:[~2017-03-14 20:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170314204404.13196-1-tmhoang@flatglobe.org \
--to=tmhoang@flatglobe.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).