mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
scst/include/scst.h: Port to Linux kernel v4.18
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user