From 20befe4a969f13f5362978aea0992783050e410a Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Thu, 14 Feb 2013 19:57:21 +0400 Subject: [PATCH] Fix new sparce warnings --- driver/us_proc_inst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/us_proc_inst.c b/driver/us_proc_inst.c index 1425de3..5e16646 100644 --- a/driver/us_proc_inst.c +++ b/driver/us_proc_inst.c @@ -1376,7 +1376,7 @@ unsigned long get_ret_addr(struct task_struct *task, struct us_ip *ip) if (ri) return (unsigned long)ri->ret_addr; else - dbi_get_ret_addr(task_pt_regs(task)); + return dbi_get_ret_addr(task_pt_regs(task)); } EXPORT_SYMBOL_GPL(get_ret_addr); @@ -1384,7 +1384,7 @@ unsigned long get_entry_sp(struct task_struct *task, struct us_ip *ip) { struct kretprobe_instance *ri = find_ri(task, ip); if (ri) - return ri->sp; + return (unsigned long)ri->sp; else return dbi_get_stack_ptr(task_pt_regs(task)); } -- 2.7.4