mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
scst: Fix the build against a RHEL 8 debug kernel
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8886 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+3
-1
@@ -4885,7 +4885,9 @@ static inline struct scatterlist *sg_next_inline(struct scatterlist *sg)
|
||||
static inline void sg_clear(struct scatterlist *sg)
|
||||
{
|
||||
memset(sg, 0, sizeof(*sg));
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) && defined(CONFIG_DEBUG_SG)
|
||||
#if defined(CONFIG_DEBUG_SG) && \
|
||||
LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) && \
|
||||
(!defined(RHEL_MAJOR) && RHEL_MAJOR -0 < 8)
|
||||
sg->sg_magic = SG_MAGIC;
|
||||
#endif
|
||||
}
|
||||
|
||||
+2
-1
@@ -8561,7 +8561,8 @@ static void scsi_end_async(struct request *req, blk_status_t error)
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
|
||||
lockdep_assert_held(req->q->queue_lock);
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0)
|
||||
#elif LINUX_VERSION_CODE < KERNEL_VERSION(4, 21, 0) && \
|
||||
(!defined(RHEL_MAJOR) || RHEL_MAJOR -0 < 8)
|
||||
if (!req->q->mq_ops)
|
||||
lockdep_assert_held(req->q->queue_lock);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user