28 lines
822 B
Diff
28 lines
822 B
Diff
From 906b218903a32134dcc1a1fdda606e7b41aad616 Mon Sep 17 00:00:00 2001
|
|
From: hubin <hubin73@huawei.com>
|
|
Date: Tue, 10 May 2022 15:26:25 +0800
|
|
Subject: [PATCH 23/37] 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
|
|
|