]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc()
authorChen Gang <gang.chen.5i5j@gmail.com>
Mon, 24 Mar 2014 12:54:11 +0000 (20:54 +0800)
committerGuan Xuetao <gxt@mprc.pku.edu.cn>
Fri, 20 Jun 2014 00:22:38 +0000 (08:22 +0800)
Add generic definition just like another architectures have done, or
can not pass compiling with allmodconfig, the related error:

    CC      kernel/profile.o
  kernel/profile.c: In function 'profile_tick':
  kernel/profile.c:419: error: implicit declaration of function 'profile_pc'
  make[1]: *** [kernel/profile.o] Error 1
  make: *** [kernel] Error 2

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
arch/unicore32/include/asm/ptrace.h

index 9df53d991c7872fba46cf23f3033ccbc3098df77..02bf5a415bf5a94a0d765db66b43e4b05f07099c 100644 (file)
@@ -55,6 +55,7 @@ static inline int valid_user_regs(struct pt_regs *regs)
 
 #define instruction_pointer(regs)      ((regs)->UCreg_pc)
 #define user_stack_pointer(regs)       ((regs)->UCreg_sp)
+#define profile_pc(regs)               instruction_pointer(regs)
 
 #endif /* __ASSEMBLY__ */
 #endif