소스 검색

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>
Vijaya Kumar K 12 년 전
부모
커밋
58dcc204f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/arm64/include/asm/ptrace.h

+ 1 - 1
arch/arm64/include/asm/ptrace.h

@@ -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);