From 4af0bb50d532545b4e756ddb6f9c6c251f9ddd2e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 1 Aug 2018 20:55:41 -0700 Subject: [PATCH] scst/include/scst.h: Port to Linux kernel v4.18 --- scst/include/scst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 9f5248dae..998a6de5b 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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 }