[FIX] build for ARM 67/45267/1
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 4 Aug 2015 08:21:50 +0000 (11:21 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Tue, 4 Aug 2015 08:21:50 +0000 (11:21 +0300)
Change-Id: I550b3492b4f3ab404a2a64b35bdbb6751bbaaba1
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
fbiprobe/regs.h
kprobe/swap_kprobes_deps.h
retprobe/rp_msg.c
writer/swap_msg.c
wsp/wsp_res.c

index 2af1336..6ad231a 100644 (file)
@@ -36,7 +36,7 @@
 #ifndef __REGS_H__
 #define __REGS_H__
 
-#include <uapi/asm/ptrace.h>
+#include <linux/ptrace.h>
 
 #include "fbi_probe_module.h"
 /* This function is used to compare register number and its name on x86 arch.
index c1adde9..2a4bc69 100644 (file)
        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))
index 9d184b2..fbbd3b0 100644 (file)
@@ -21,6 +21,7 @@
 
 
 #include <linux/sched.h>
+#include <linux/module.h>
 #include <writer/swap_msg.h>
 #include <writer/kernel_operations.h>
 #include "rp_msg.h"
index abfd992..838a30a 100644 (file)
@@ -25,6 +25,8 @@
 #include <linux/ctype.h>
 #include <linux/errno.h>
 #include <linux/atomic.h>
+#include <linux/module.h>
+#include <kprobe/swap_kprobes.h>
 #include <buffer/swap_buffer_module.h>
 #include <swap-asm/swap_kprobes.h>
 #include <swap-asm/swap_uprobes.h>
index 88eae97..0e13bbc 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <linux/slab.h>
 #include <linux/atomic.h>
+#include <kprobe/swap_kprobes_deps.h>
 #include "wsp_res.h"
 
 static atomic_t wsp_res_count;