ftrace: remove ftrace_ip_converted()
Remove the unneeded function ftrace_ip_converted(). Signed-off-by: Abhishek Sagar <sagar.abhishek@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:

committed by
Ingo Molnar

parent
0eb967012e
commit
1d74f2a0f6
@@ -27,16 +27,6 @@ static unsigned int ftrace_nop = 0x60000000;
|
||||
# define GET_ADDR(addr) *(unsigned long *)addr
|
||||
#endif
|
||||
|
||||
notrace int ftrace_ip_converted(unsigned long ip)
|
||||
{
|
||||
unsigned int save;
|
||||
|
||||
ip -= CALL_BACK;
|
||||
save = *(unsigned int *)ip;
|
||||
|
||||
return save == ftrace_nop;
|
||||
}
|
||||
|
||||
static unsigned int notrace ftrace_calc_offset(long ip, long addr)
|
||||
{
|
||||
return (int)((addr + CALL_BACK) - ip);
|
||||
|
Reference in New Issue
Block a user