OSDN Git Service

s390x: fix fpreg_t and remove unused per_struct
authorTuan M. Hoang <tmhoang@flatglobe.org>
Tue, 14 Mar 2017 20:44:04 +0000 (16:44 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 16 Mar 2017 00:25:45 +0000 (20:25 -0400)
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
asm/ptrace.h

arch/s390x/bits/user.h

index 90f07b7..17bce16 100644 (file)
@@ -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;