Commit b9061ef5 authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Steven Miao

arch: blackfin: kernel: kgdb: Remove unused function

Remove the function kgdb_post_primary_code() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Acked-by: default avatarSonic Zhang <sonic.zhang@analog.com>
parent 37557178
...@@ -355,19 +355,6 @@ void kgdb_roundup_cpu(int cpu, unsigned long flags) ...@@ -355,19 +355,6 @@ void kgdb_roundup_cpu(int cpu, unsigned long flags)
static unsigned long kgdb_arch_imask; static unsigned long kgdb_arch_imask;
#endif #endif
void kgdb_post_primary_code(struct pt_regs *regs, int e_vector, int err_code)
{
if (kgdb_single_step)
preempt_enable();
#ifdef CONFIG_IPIPE
if (kgdb_arch_imask) {
cpu_pda[raw_smp_processor_id()].ex_imask = kgdb_arch_imask;
kgdb_arch_imask = 0;
}
#endif
}
int kgdb_arch_handle_exception(int vector, int signo, int kgdb_arch_handle_exception(int vector, int signo,
int err_code, char *remcom_in_buffer, int err_code, char *remcom_in_buffer,
char *remcom_out_buffer, char *remcom_out_buffer,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment