Commit 58dcc204 authored by Vijaya Kumar K's avatar Vijaya Kumar K Committed by Catalin Marinas

misc: debug: remove compilation warnings

typecast instruction_pointer macro to unsigned long to
resolve following compiler warnings like
warning: format '%lx' expects argument of type 'long unsigned int',
but argument 2 has type 'u64' [-Wformat]
Signed-off-by: default avatarVijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent d498d4b4
...@@ -164,7 +164,7 @@ static inline int valid_user_regs(struct user_pt_regs *regs) ...@@ -164,7 +164,7 @@ static inline int valid_user_regs(struct user_pt_regs *regs)
return 0; return 0;
} }
#define instruction_pointer(regs) (regs)->pc #define instruction_pointer(regs) ((unsigned long)(regs)->pc)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
extern unsigned long profile_pc(struct pt_regs *regs); extern unsigned long profile_pc(struct pt_regs *regs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment