kpatch-build: remove duplicated use_klp_arch

The two versions are not the same (4.18.0-240.el8 vs. 4.18.0-284.el8).
But I am not quite sure which one is accurate. Remove the first one as the
second one is being used before this change.

Signed-off-by: Song Liu <song@kernel.org>
This commit is contained in:
Song Liu 2022-04-28 11:43:43 -07:00
parent b0444d2599
commit 3392049665
1 changed files with 0 additions and 15 deletions

View File

@ -205,21 +205,6 @@ rhel_kernel_version_gte() {
[ "${ARCHVERSION}" = "$(echo -e "${ARCHVERSION}\\n$1" | sort -rV | head -n1)" ] [ "${ARCHVERSION}" = "$(echo -e "${ARCHVERSION}\\n$1" | sort -rV | head -n1)" ]
} }
# klp.arch relocations were supported prior to v5.8
# and prior to 4.18.0-240.el8
use_klp_arch()
{
if kernel_is_rhel; then
! rhel_kernel_version_gte 4.18.0-240.el8
else
! kernel_version_gte 5.8.0
fi
}
rhel_kernel_version_gte() {
[ "${ARCHVERSION}" = "$(echo -e "${ARCHVERSION}\\n$1" | sort -rV | head -n1)" ]
}
# klp.arch relocations were supported prior to v5.8 # klp.arch relocations were supported prior to v5.8
# and prior to 4.18.0-284.el8 # and prior to 4.18.0-284.el8
use_klp_arch() use_klp_arch()