diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-03-24 13:54:11 +0100 |
---|---|---|
committer | Guan Xuetao <gxt@mprc.pku.edu.cn> | 2014-06-20 02:22:38 +0200 |
commit | 1febf615142bc319f2e3bfa612094186cb1d32c9 (patch) | |
tree | 53d109110e582160d1113741cc9651f796ec6297 | |
parent | arch/unicore32/mm/alignment.c: include "asm/pgtable.h" to avoid compiling error (diff) | |
download | linux-1febf615142bc319f2e3bfa612094186cb1d32c9.tar.xz linux-1febf615142bc319f2e3bfa612094186cb1d32c9.zip |
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>
-rw-r--r-- | arch/unicore32/include/asm/ptrace.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/unicore32/include/asm/ptrace.h b/arch/unicore32/include/asm/ptrace.h index 9df53d991c78..02bf5a415bf5 100644 --- a/arch/unicore32/include/asm/ptrace.h +++ b/arch/unicore32/include/asm/ptrace.h @@ -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 |