summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/chpid.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2012-10-09 12:18:10 (GMT)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2012-10-09 12:18:10 (GMT)
commitab08ff34b44f752b664ebb312d2e110cf37a7f5e (patch)
tree80579bb79480ac303cad99c359549d4e86bcc773 /arch/s390/include/asm/chpid.h
parent450e47da67499aeb6f1700e8f84747460c11ab56 (diff)
parent9807f75955ea7f1877981056755284481873115c (diff)
downloadlinux-fsl-qoriq-ab08ff34b44f752b664ebb312d2e110cf37a7f5e.tar.xz
Merge tag 'disintegrate-s390-20121009' of
git://git.infradead.org/users/dhowells/linux-headers Pull UAPI patchset from David Howells: "Can you merge the following branch into the s390 tree please. This is to complete part of the UAPI disintegration for which the preparatory patches were pulled recently." Conflicts: arch/s390/include/asm/chpid.h
Diffstat (limited to 'arch/s390/include/asm/chpid.h')
-rw-r--r--arch/s390/include/asm/chpid.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/s390/include/asm/chpid.h b/arch/s390/include/asm/chpid.h
index 8af0b92..38c405e 100644
--- a/arch/s390/include/asm/chpid.h
+++ b/arch/s390/include/asm/chpid.h
@@ -2,23 +2,10 @@
* Copyright IBM Corp. 2007, 2012
* Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
*/
-
#ifndef _ASM_S390_CHPID_H
#define _ASM_S390_CHPID_H
-#include <linux/string.h>
-#include <linux/types.h>
-
-#define __MAX_CHPID 255
-
-struct chp_id {
- __u8 reserved1;
- __u8 cssid;
- __u8 reserved2;
- __u8 id;
-} __attribute__((packed));
-
-#ifdef __KERNEL__
+#include <uapi/asm/chpid.h>
#include <asm/cio.h>
static inline void chp_id_init(struct chp_id *chpid)
@@ -49,6 +36,4 @@ static inline int chp_id_is_valid(struct chp_id *chpid)
#define chp_id_for_each(c) \
for (chp_id_init(c); chp_id_is_valid(c); chp_id_next(c))
-#endif /* __KERNEL */
-
#endif /* _ASM_S390_CHPID_H */