scripts/specialize-patch: Handle _COMPAT_LINUX_MM_H correctly

Fixes: 5930b4db71 ("scst: Fix the MOFED build")


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-11-19 03:46:04 +00:00
parent ca9d681fd0
commit af0b6a2895
+2
View File
@@ -235,6 +235,7 @@ function evaluate(stmnt, pattern, arg, op, result) {
gsub("MOFED_MINOR", MOFED_MINOR, stmnt)
}
gsub("defined\\(_COMPAT_LINUX_MM_H\\)", "0", stmnt)
gsub("defined\\(UEK_KABI_RENAME\\)", "0", stmnt)
if (SCST_IO_CONTEXT != "")
@@ -435,6 +436,7 @@ function handle_if(evaluated)
|| $0 ~ "RHEL_RELEASE_CODE" \
|| $0 ~ "SOCK_RECVMSG_HAS_FOUR_ARGS" \
|| $0 ~ "UEK_KABI_RENAME" \
|| $0 ~ "_COMPAT_LINUX_MM_H" \
|| $0 ~ "USE_PRE_440_WR_STRUCTURE" \
|| generating_upstream_patch_defined \
&& $0 ~ "GENERATING_UPSTREAM_PATCH" \