From ffb1b505cc823068d20013560890c8bea21cf6f7 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 23 Dec 2019 15:37:37 +0000 Subject: [PATCH] scripts/specialize-patch: Fix expansion of HAVE_IB_SG_DMA_LEN This patch fixes commit ac145e1cb6a5 ("ib_srpt: Detect ib_sg_dma_len() presence at compile time"; r8655). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8691 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/specialize-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index e75c60c46..40563a6fa 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -148,7 +148,7 @@ function evaluate(stmnt, pattern, arg, op, result) { gsub("defined\\(HAVE_IB_DMA_MAP_OPS\\)", "(LINUX_VERSION_CODE >= KERNEL_VERSION(0, 0, 0))", stmnt) - gsub("defined\\(HAVE_IB_SG_DMA_LEN\\)", + gsub("HAVE_IB_SG_DMA_LEN", "(LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0))", stmnt) gsub("defined(ENABLE_NPIV)", 0, stmnt)