diff options
author | 2014-01-28 16:50:21 +0530 | |
---|---|---|
committer | 2014-02-26 11:16:26 +0000 | |
commit | 58dcc204f18af2821f683b235bb376f9db2557f5 (patch) | |
tree | c09b170de3738b5556d0fe8e7e95b9187e455f90 /arch/arm64/include | |
parent | KGDB: make kgdb_breakpoint() as noinline (diff) | |
download | linux-58dcc204f18af2821f683b235bb376f9db2557f5.tar.gz linux-58dcc204f18af2821f683b235bb376f9db2557f5.tar.bz2 linux-58dcc204f18af2821f683b235bb376f9db2557f5.zip |
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/include')
-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); |