Merge branch 'for-3.18-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...
[linux/fpc-iii.git] / arch / s390 / include / asm / schid.h
blob40b47dfa9d66d4859ada7a44806484bef5561d89
1 #ifndef ASM_SCHID_H
2 #define ASM_SCHID_H
4 #include <linux/string.h>
5 #include <uapi/asm/schid.h>
7 /* Helper function for sane state of pre-allocated subchannel_id. */
8 static inline void
9 init_subchannel_id(struct subchannel_id *schid)
11 memset(schid, 0, sizeof(struct subchannel_id));
12 schid->one = 1;
15 static inline int
16 schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
18 return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
21 #endif /* ASM_SCHID_H */