summaryrefslogtreecommitdiffstats
path: root/include/asm-s390/schid.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-07-17 09:05:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-17 09:05:38 -0700
commitee723cb3d419afcc8b6c7ccc0f73a34b0eb5ac7b (patch)
tree630bc3f1d0e57687e777d2f30e478a23baca9353 /include/asm-s390/schid.h
parent7023cc61292f9cd61d99521206480f6e387132ff (diff)
parent8586cb60ce85f40431cf06fe97512269d3992f03 (diff)
downloadop-kernel-dev-ee723cb3d419afcc8b6c7ccc0f73a34b0eb5ac7b.zip
op-kernel-dev-ee723cb3d419afcc8b6c7ccc0f73a34b0eb5ac7b.tar.gz
Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6: [S390] dasd: use -EOPNOTSUPP instead of -ENOTSUPP [S390] qdio: new qdio driver. [S390] cio: Export chsc_error_from_response(). [S390] vmur: Fix return code handling. [S390] Fix stacktrace compile bug. [S390] Increase default warning stacksize. [S390] dasd: Fix cleanup in dasd_{fba,diag}_check_characteristics(). [S390] chsc headers userspace cleanup [S390] dasd: fix unsolicited SIM handling. [S390] zfcpdump: Make SCSI disk dump tool recognize storage holes
Diffstat (limited to 'include/asm-s390/schid.h')
-rw-r--r--include/asm-s390/schid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-s390/schid.h b/include/asm-s390/schid.h
index 5017ffa..7bdc0fe 100644
--- a/include/asm-s390/schid.h
+++ b/include/asm-s390/schid.h
@@ -10,6 +10,7 @@ struct subchannel_id {
__u32 sch_no : 16;
} __attribute__ ((packed, aligned(4)));
+#ifdef __KERNEL__
/* Helper function for sane state of pre-allocated subchannel_id. */
static inline void
@@ -25,4 +26,6 @@ schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
}
+#endif /* __KERNEL__ */
+
#endif /* ASM_SCHID_H */
OpenPOWER on IntegriCloud