diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2021-05-10 21:10:16 +0200 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2021-06-07 17:07:01 +0200 |
commit | 34bbeed07494cc0d64d0c7a953230883a4d78f6f (patch) | |
tree | 55c0f001e35b8aa9c07cb2d646dc7f90d09af5e4 /arch/s390/include/uapi | |
parent | s390/cio: add tpi.h header file (diff) | |
download | linux-34bbeed07494cc0d64d0c7a953230883a4d78f6f.tar.gz linux-34bbeed07494cc0d64d0c7a953230883a4d78f6f.tar.bz2 linux-34bbeed07494cc0d64d0c7a953230883a4d78f6f.zip |
s390: add struct tpi_info to struct pt_regs
To avoid casting ptrace members, add a union containing
both struct tpi_info and explicit int_code/int_parm members.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/uapi')
-rw-r--r-- | arch/s390/include/uapi/asm/schid.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/schid.h b/arch/s390/include/uapi/asm/schid.h index 58fca6f48410..a3e1cf168553 100644 --- a/arch/s390/include/uapi/asm/schid.h +++ b/arch/s390/include/uapi/asm/schid.h @@ -4,6 +4,8 @@ #include <linux/types.h> +#ifndef __ASSEMBLY__ + struct subchannel_id { __u32 cssid : 8; __u32 : 4; @@ -13,5 +15,6 @@ struct subchannel_id { __u32 sch_no : 16; } __attribute__ ((packed, aligned(4))); +#endif /* __ASSEMBLY__ */ #endif /* _UAPIASM_SCHID_H */ |