From 9ef01daebc26a46a66915498859b301b23287afd Mon Sep 17 00:00:00 2001 From: Solar Designer Date: Tue, 24 Sep 2024 01:09:48 +0200 Subject: [PATCH] ARM64: Fix warning: "RHEL_RELEASE_CODE" is not defined --- src/modules/exploit_detection/p_exploit_detection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/exploit_detection/p_exploit_detection.c b/src/modules/exploit_detection/p_exploit_detection.c index d5c57812..69db274a 100644 --- a/src/modules/exploit_detection/p_exploit_detection.c +++ b/src/modules/exploit_detection/p_exploit_detection.c @@ -1651,8 +1651,8 @@ int p_ed_enforce_pcfi(struct task_struct *p_task, struct p_ed_process *p_orig, s struct stack_frame p_frame; #endif #elif defined(CONFIG_ARM64) -# if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0)) \ - || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9,2)) +# if LINUX_VERSION_CODE >= KERNEL_VERSION(5,19,0) || \ + (defined(RHEL_RELEASE_CODE) && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9,2)) struct unwind_state p_frame; # else struct stackframe p_frame;