From 34bbcb740d279855a0ddf45933c32fe1473b4506 Mon Sep 17 00:00:00 2001 From: Vyacheslav Cherkashin Date: Tue, 4 Aug 2015 11:21:50 +0300 Subject: [PATCH] [FIX] build for ARM Change-Id: I550b3492b4f3ab404a2a64b35bdbb6751bbaaba1 Signed-off-by: Vyacheslav Cherkashin --- fbiprobe/regs.h | 2 +- kprobe/swap_kprobes_deps.h | 4 ++++ retprobe/rp_msg.c | 1 + writer/swap_msg.c | 2 ++ wsp/wsp_res.c | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fbiprobe/regs.h b/fbiprobe/regs.h index 2af1336..6ad231a 100644 --- a/fbiprobe/regs.h +++ b/fbiprobe/regs.h @@ -36,7 +36,7 @@ #ifndef __REGS_H__ #define __REGS_H__ -#include +#include #include "fbi_probe_module.h" /* This function is used to compare register number and its name on x86 arch. diff --git a/kprobe/swap_kprobes_deps.h b/kprobe/swap_kprobes_deps.h index c1adde9..2a4bc69 100644 --- a/kprobe/swap_kprobes_deps.h +++ b/kprobe/swap_kprobes_deps.h @@ -55,6 +55,10 @@ hlist_for_each_entry_safe(tpos, pos, n, head, member) #define swap_hlist_for_each_entry(tpos, pos, head, member) \ hlist_for_each_entry(tpos, pos, head, member) + +#define list_first_entry_or_null(ptr, type, member) \ + (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL) + #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0) */ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12)) diff --git a/retprobe/rp_msg.c b/retprobe/rp_msg.c index 9d184b2..fbbd3b0 100644 --- a/retprobe/rp_msg.c +++ b/retprobe/rp_msg.c @@ -21,6 +21,7 @@ #include +#include #include #include #include "rp_msg.h" diff --git a/writer/swap_msg.c b/writer/swap_msg.c index abfd992..838a30a 100644 --- a/writer/swap_msg.c +++ b/writer/swap_msg.c @@ -25,6 +25,8 @@ #include #include #include +#include +#include #include #include #include diff --git a/wsp/wsp_res.c b/wsp/wsp_res.c index 88eae97..0e13bbc 100644 --- a/wsp/wsp_res.c +++ b/wsp/wsp_res.c @@ -22,6 +22,7 @@ #include #include +#include #include "wsp_res.h" static atomic_t wsp_res_count; -- 2.7.4