mirror of https://github.com/dynup/kpatch
livepatch-patch-hook: skip klp_(un)register_patch() for RHEL-7.8+ kernels
RHEL-7.8 backported upstream kernel commit 958ef1e39d24 ("livepatch: Simplify API by removing registration step"), so add it to the kernels using the simple registration API. Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
This commit is contained in:
parent
1fe8fe66c2
commit
b913b4bae0
|
@ -64,7 +64,11 @@
|
|||
# define HAVE_CALLBACKS
|
||||
#endif
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
|
||||
#ifdef RHEL_RELEASE_CODE
|
||||
# if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 8)
|
||||
# define HAVE_SIMPLE_ENABLE
|
||||
# endif
|
||||
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(5, 1, 0)
|
||||
# define HAVE_SIMPLE_ENABLE
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue