diff options
author | Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com> | 2014-01-28 16:50:21 +0530 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2014-02-26 11:16:26 +0000 |
commit | 58dcc204f18af2821f683b235bb376f9db2557f5 (patch) | |
tree | c09b170de3738b5556d0fe8e7e95b9187e455f90 /arch/arm64 | |
parent | d498d4b47fb3050f2f7840cc49251f87f04d1ca9 (diff) | |
download | linux-58dcc204f18af2821f683b235bb376f9db2557f5.tar.bz2 |
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: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/asm/ptrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/ptrace.h b/arch/arm64/include/asm/ptrace.h index 0e7fa4963735..5233966fba3d 100644 --- a/arch/arm64/include/asm/ptrace.h +++ b/arch/arm64/include/asm/ptrace.h @@ -164,7 +164,7 @@ static inline int valid_user_regs(struct user_pt_regs *regs) return 0; } -#define instruction_pointer(regs) (regs)->pc +#define instruction_pointer(regs) ((unsigned long)(regs)->pc) #ifdef CONFIG_SMP extern unsigned long profile_pc(struct pt_regs *regs); |