From 04ea811e8de18c22dd82f93473cdfb322b4869c4 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Tue, 9 Jan 2024 18:33:31 +0300 Subject: [PATCH] scripts: Revert "scripts: Add support for the UEK_RELEASE macro" This reverts commit 0d025a2e. Remove unused UEK_RELEASE macro support. --- scripts/generate-kernel-patch | 2 +- scripts/specialize-patch | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 09715c993..7a0480a97 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -124,7 +124,7 @@ function specialize_patch { fi ;; UEK) - ao=(-v UEK_KABI_RENAME=1 -v UEK_RELEASE=${releasevermajor}) + ao=(-v UEK_KABI_RENAME=1) ;; esac local kver3 diff --git a/scripts/specialize-patch b/scripts/specialize-patch index e5f508afd..30d55c905 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -252,8 +252,6 @@ function evaluate(stmnt, pattern, arg, op, result) { gsub("defined\\(_COMPAT_LINUX_MM_H\\)", "0", stmnt) gsub("defined\\(UEK_KABI_RENAME\\)", UEK_KABI_RENAME ? "1" : "0", stmnt) - gsub("defined\\(UEK_RELEASE\\)", UEK_RELEASE ? "1" : "0", stmnt) - gsub("UEK_RELEASE", UEK_RELEASE ? UEK_RELEASE : "0", stmnt) if (SCST_IO_CONTEXT != "") { @@ -460,7 +458,6 @@ function handle_if(evaluated) || $0 ~ "RHEL_RELEASE_CODE" \ || $0 ~ "SOCK_RECVMSG_HAS_FOUR_ARGS" \ || $0 ~ "UEK_KABI_RENAME" \ - || $0 ~ "UEK_RELEASE" \ || $0 ~ "USE_PRE_440_WR_STRUCTURE" \ || $0 ~ "_COMPAT_LINUX_MM_H" \ || $0 ~ "bio_multiple_segments" \