diff options
author | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2012-10-18 12:22:00 +0400 |
---|---|---|
committer | Vyacheslav Cherkashin <v.cherkashin@samsung.com> | 2012-10-18 12:22:00 +0400 |
commit | 9a12def3fb39f345a02109f60a21cd7b402da561 (patch) | |
tree | bf2c28e51d4d1f1498f74bf293e957902ea78d03 /kprobe/dbi_kprobes_deps.c | |
parent | f05aa5e008b9b9af9b82953262493862f961a3a0 (diff) | |
download | swap-modules-9a12def3fb39f345a02109f60a21cd7b402da561.tar.gz swap-modules-9a12def3fb39f345a02109f60a21cd7b402da561.tar.bz2 swap-modules-9a12def3fb39f345a02109f60a21cd7b402da561.zip |
fixed and remove warning
but warning in file 'src/probes/probes.def' lines 950 and 980
Diffstat (limited to 'kprobe/dbi_kprobes_deps.c')
-rw-r--r-- | kprobe/dbi_kprobes_deps.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/kprobe/dbi_kprobes_deps.c b/kprobe/dbi_kprobes_deps.c index 29bcf8fc..53af1800 100644 --- a/kprobe/dbi_kprobes_deps.c +++ b/kprobe/dbi_kprobes_deps.c @@ -36,8 +36,8 @@ #include <linux/slab.h> #include <linux/mm.h> -unsigned int *sched_addr; -unsigned int *fork_addr; +unsigned long sched_addr; +unsigned long fork_addr; #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 29) struct mm_struct* init_mm_ptr; @@ -179,9 +179,9 @@ IMP_MOD_DEP_WRAPPER(in_gate_area_no_task, addr) static inline int dbi_in_gate_area_no_xxx(unsigned long addr) { #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) - in_gate_area_no_mm(addr); + return in_gate_area_no_mm(addr); #else /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */ - in_gate_area_no_task(addr); + return in_gate_area_no_task(addr); #endif /* LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 38) */ } @@ -743,9 +743,6 @@ int access_process_vm_atomic(struct task_struct *tsk, unsigned long addr, void * struct mm_struct *mm; struct vm_area_struct *vma; void *old_buf = buf; - unsigned long addr1 = addr; - unsigned int* inst_buf = (unsigned int*)old_buf; - mm = get_task_mm(tsk); if (!mm) |