summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/chpid.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2012-10-05 10:43:31 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-10-09 14:17:00 +0200
commit4dcc2a4d6c37c36155ea6d6305f15e599531b862 (patch)
treed597bfa9c7ca679688bcb22ee45f232a6fe1c16b /arch/s390/include/asm/chpid.h
parent9be5f34f3f00828dfe4012578b6467a31f408eab (diff)
downloadlinux-4dcc2a4d6c37c36155ea6d6305f15e599531b862.tar.bz2
s390/chsc: make headers usable
Make sure that exported headers are save to be included by userspace exploiting /dev/chsc. Reported-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/chpid.h')
-rw-r--r--arch/s390/include/asm/chpid.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/s390/include/asm/chpid.h b/arch/s390/include/asm/chpid.h
index e5bde9f9291f..8af0b92c90c6 100644
--- a/arch/s390/include/asm/chpid.h
+++ b/arch/s390/include/asm/chpid.h
@@ -1,5 +1,5 @@
/*
- * Copyright IBM Corp. 2007
+ * Copyright IBM Corp. 2007, 2012
* Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
*/
@@ -12,10 +12,10 @@
#define __MAX_CHPID 255
struct chp_id {
- u8 reserved1;
- u8 cssid;
- u8 reserved2;
- u8 id;
+ __u8 reserved1;
+ __u8 cssid;
+ __u8 reserved2;
+ __u8 id;
} __attribute__((packed));
#ifdef __KERNEL__