From: Vyacheslav Cherkashin Date: Tue, 4 Aug 2015 08:21:50 +0000 (+0300) Subject: [FIX] build for ARM X-Git-Tag: submit/tizen_2.4/20150912.103527~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34bbcb740d279855a0ddf45933c32fe1473b4506;p=kernel%2Fswap-modules.git [FIX] build for ARM Change-Id: I550b3492b4f3ab404a2a64b35bdbb6751bbaaba1 Signed-off-by: Vyacheslav Cherkashin --- 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;