summaryrefslogtreecommitdiff
path: root/kprobe/dbi_kprobes_deps.c
diff options
context:
space:
mode:
authorVasiliy Ulyanov <v.ulyanov@samsung.com>2012-09-10 09:11:51 +0400
committerVasiliy Ulyanov <v.ulyanov@samsung.com>2012-09-10 09:11:51 +0400
commitcea1614184887d011aaf8e0c3cbb40f92aebbf3c (patch)
treec40cf42ad5c50c256a8da2e2df896ba3c4718d3a /kprobe/dbi_kprobes_deps.c
parentbf47de547e4139ef1a3b032ef845e875d43b76ee (diff)
downloadswap-modules-cea1614184887d011aaf8e0c3cbb40f92aebbf3c.tar.gz
swap-modules-cea1614184887d011aaf8e0c3cbb40f92aebbf3c.tar.bz2
swap-modules-cea1614184887d011aaf8e0c3cbb40f92aebbf3c.zip
fix commit fd8ebf18bd07ee6380b260260e5dd9df38f41859
Diffstat (limited to 'kprobe/dbi_kprobes_deps.c')
-rw-r--r--kprobe/dbi_kprobes_deps.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/kprobe/dbi_kprobes_deps.c b/kprobe/dbi_kprobes_deps.c
index 3a9b16e5..8db7cecb 100644
--- a/kprobe/dbi_kprobes_deps.c
+++ b/kprobe/dbi_kprobes_deps.c
@@ -166,12 +166,20 @@ static inline int dbi_in_gate_area(struct task_struct *task, unsigned long addr)
}
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)
+DECLARE_MOD_DEP_WRAPPER(in_gate_area_no_mm, int, unsigned long addr)
+IMP_MOD_DEP_WRAPPER(in_gate_area_no_mm, addr)
+#else /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
+DECLARE_MOD_DEP_WRAPPER(in_gate_area_no_task, int, unsigned long addr)
+IMP_MOD_DEP_WRAPPER(in_gate_area_no_task, addr)
+#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
+
static inline int dbi_in_gate_area_no_xxx(unsigned long addr)
{
#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38)
- IMP_MOD_DEP_WRAPPER (in_gate_area_no_mm, addr)
+ in_gate_area_no_mm(addr);
#else /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
- IMP_MOD_DEP_WRAPPER (in_gate_area_no_task, addr);
+ in_gate_area_no_task(addr);
#endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */
}