From ea3cd5d07720d7d154dcb046a7c11f91d2101456 Mon Sep 17 00:00:00 2001 From: Anatolii Nikulin Date: Thu, 23 Jun 2016 18:45:36 +0300 Subject: [PATCH] [FIX] build for r720 Change-Id: I0b4c694dd4aaa3c5988f4d838ceb0454687490ed Signed-off-by: Anatolii Nikulin --- kprobe/swap_kprobes_deps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kprobe/swap_kprobes_deps.c b/kprobe/swap_kprobes_deps.c index 86ce257..8d8ca6d 100644 --- a/kprobe/swap_kprobes_deps.c +++ b/kprobe/swap_kprobes_deps.c @@ -408,11 +408,11 @@ int init_module_dependencies(void) INIT_MOD_DEP_VAR(in_gate_area, in_gate_area); INIT_MOD_DEP_VAR(get_gate_vma, get_gate_vma); -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) +#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) INIT_MOD_DEP_VAR(in_gate_area_no_mm, in_gate_area_no_mm); -#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3, 9, 0)) */ +#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)) */ INIT_MOD_DEP_VAR(in_gate_area_no_task, in_gate_area_no_task); -#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(3, 9, 0)) */ +#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)) */ #endif #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) -- 2.7.4