Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch/unicore32/include/asm/ptrace.h: add generic definition for profile_pc()

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>

authored by

Chen Gang and committed by
Guan Xuetao
1febf615 1ff38c56

+1
+1
arch/unicore32/include/asm/ptrace.h
··· 55 55 56 56 #define instruction_pointer(regs) ((regs)->UCreg_pc) 57 57 #define user_stack_pointer(regs) ((regs)->UCreg_sp) 58 + #define profile_pc(regs) instruction_pointer(regs) 58 59 59 60 #endif /* __ASSEMBLY__ */ 60 61 #endif