scst/include/scst.h: Port to Linux kernel v4.18

This commit is contained in:
Bart Van Assche
2018-08-01 20:55:41 -07:00
parent a0475b52f9
commit 4af0bb50d5

View File

@@ -4971,7 +4971,7 @@ static inline struct scatterlist *sg_next_inline(struct scatterlist *sg)
static inline void sg_clear(struct scatterlist *sg)
{
memset(sg, 0, sizeof(*sg));
#ifdef CONFIG_DEBUG_SG
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) && defined(CONFIG_DEBUG_SG)
sg->sg_magic = SG_MAGIC;
#endif
}