2022-05-12 13:06:47 +08:00
|
|
|
From 5b34dae2eaf57c33beb5cd4e3972a4580259a5fc Mon Sep 17 00:00:00 2001
|
2022-05-10 15:37:18 +08:00
|
|
|
From: hubin <hubin73@huawei.com>
|
|
|
|
|
Date: Tue, 10 May 2022 15:26:25 +0800
|
2022-05-12 13:06:47 +08:00
|
|
|
Subject: [PATCH] livepatch-patch-hook: disable HAVE_SIMPLE_ENABLE to keep
|
2022-05-10 15:37:18 +08:00
|
|
|
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
|
2022-05-12 13:06:47 +08:00
|
|
|
index 9e56fe3..b565a6a 100644
|
2022-05-10 15:37:18 +08:00
|
|
|
--- a/kmod/patch/livepatch-patch-hook.c
|
|
|
|
|
+++ b/kmod/patch/livepatch-patch-hook.c
|
2022-05-12 13:06:47 +08:00
|
|
|
@@ -70,8 +70,6 @@
|
|
|
|
|
RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 2)
|
|
|
|
|
# define HAVE_SIMPLE_ENABLE
|
2022-05-10 15:37:18 +08:00
|
|
|
# endif
|
|
|
|
|
-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
|
2022-05-12 13:06:47 +08:00
|
|
|
-# define HAVE_SIMPLE_ENABLE
|
2022-05-10 15:37:18 +08:00
|
|
|
#endif
|
|
|
|
|
|
2022-05-12 13:06:47 +08:00
|
|
|
#ifdef RHEL_RELEASE_CODE
|
2022-05-10 15:37:18 +08:00
|
|
|
--
|
|
|
|
|
2.31.0.windows.1
|
|
|
|
|
|