diff --git a/scripts/specialize-patch b/scripts/specialize-patch index 611ce595a..c99b93188 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -66,7 +66,7 @@ function evaluate(stmnt, pattern, arg, op, result) { gsub("defined\\(REGISTER_MAD_AGENT_HAS_FLAGS_ARG\\)", "(LINUX_VERSION_CODE >= KERNEL_VERSION(3, 17, 0) || " \ - "RHEL_RELEASE_CODE -0 >= 6 * 256 + 10)", stmnt) + "RHEL_RELEASE_CODE -0 >= 6 * 256 + 9)", stmnt) gsub("SOCK_RECVMSG_HAS_FOUR_ARGS", "(LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0))", stmnt) @@ -131,7 +131,7 @@ function evaluate(stmnt, pattern, arg, op, result) { gsub("defined\\(HAVE_IB_EVENT_GID_CHANGE\\)", "(LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) || " \ - "RHEL_RELEASE_CODE -0 >= 6 * 256 + 10)", stmnt) + "RHEL_RELEASE_CODE -0 >= 6 * 256 + 9)", stmnt) gsub("defined\\(HAVE_IB_QUERY_DEVICE\\)", "(LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) \\&\\& " \ @@ -153,7 +153,8 @@ function evaluate(stmnt, pattern, arg, op, result) { "(LINUX_VERSION_CODE >= KERNEL_VERSION(0, 0, 0))", stmnt) gsub("HAVE_IB_SG_DMA_LEN", - "(LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0))", stmnt) + "(LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0) \\&\\& " \ + "RHEL_RELEASE_CODE -0 < 8 * 256 + 2)", stmnt) gsub("defined(ENABLE_NPIV)", 0, stmnt)