From 61045e025e02b52a0e533744df171ccb0ab7a9cf Mon Sep 17 00:00:00 2001 From: yinbinbin Date: Tue, 15 Nov 2022 14:57:15 +0800 Subject: [PATCH] kpatch:remove kernel_version_from_config Signed-off-by: yinbinbin --- kpatch-build/kpatch-build | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 4ac6844..086d28b 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -294,12 +294,6 @@ kernel_version_from_config() { fi } -kernel_version_from_config() { - if [[ -f "$CONFIGFILE" ]]; then - sed -n '/Kernel Configuration/p' "$CONFIGFILE" | cut -d ' ' -f 3 - fi -} - gcc_version_check() { local target="$1" local c="$TEMPDIR/test.c" o="$TEMPDIR/test.o" -- Gitee