mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 15:41:58 +00:00
9807f75955
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
22 lines
486 B
C
22 lines
486 B
C
#ifndef ASM_SCHID_H
|
|
#define ASM_SCHID_H
|
|
|
|
#include <linux/string.h>
|
|
#include <uapi/asm/schid.h>
|
|
|
|
/* Helper function for sane state of pre-allocated subchannel_id. */
|
|
static inline void
|
|
init_subchannel_id(struct subchannel_id *schid)
|
|
{
|
|
memset(schid, 0, sizeof(struct subchannel_id));
|
|
schid->one = 1;
|
|
}
|
|
|
|
static inline int
|
|
schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
|
|
{
|
|
return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
|
|
}
|
|
|
|
#endif /* ASM_SCHID_H */
|