kpatch/0023-livepatch-patch-hook-disable-HAVE_SIMPLE_ENABLE-to-k.patch
hubin a652ed44c2 kpatch: upgrade to 0.9.9
Signed-off-by: hubin <hubin73@huawei.com>
2024-03-02 00:18:20 +08:00

28 lines
822 B
Diff

From 4bef2105aea35f04e62a6a10de75f238917add63 Mon Sep 17 00:00:00 2001
From: hubin <hubin73@huawei.com>
Date: Tue, 10 May 2022 15:26:25 +0800
Subject: [PATCH 23/38] livepatch-patch-hook: disable HAVE_SIMPLE_ENABLE to
keep register and unregister step of hotpatch
Signed-off-by: Bin Hu <hubin73@huawei.com>
---
kmod/patch/livepatch-patch-hook.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kmod/patch/livepatch-patch-hook.c b/kmod/patch/livepatch-patch-hook.c
index 9e56fe3..b565a6a 100644
--- a/kmod/patch/livepatch-patch-hook.c
+++ b/kmod/patch/livepatch-patch-hook.c
@@ -70,8 +70,6 @@
RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 2)
# define HAVE_SIMPLE_ENABLE
# endif
-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
-# define HAVE_SIMPLE_ENABLE
#endif
#ifdef RHEL_RELEASE_CODE
--
2.33.0