RE: [Adi-buildroot-devel] [PATCH] arch: blackfin: kernel: kgdb: Remove unused function

From: Zhang, Sonic
Date: Sun Jan 04 2015 - 22:12:17 EST


Acked-by: Sonic Zhang <sonic.zhang@xxxxxxxxxx>

Sonic

>-----Original Message-----
>From: Rickard Strandqvist [mailto:rickard_strandqvist@xxxxxxxxxxxxxxxxxx]
>Sent: Friday, January 02, 2015 1:54 AM
>To: Steven Miao; adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx
>Cc: linux-kernel@xxxxxxxxxxxxxxx; Rickard Strandqvist
>Subject: [Adi-buildroot-devel] [PATCH] 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: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx>
>---
> arch/blackfin/kernel/kgdb.c | 13 -------------
> 1 file changed, 13 deletions(-)
>
>diff --git a/arch/blackfin/kernel/kgdb.c b/arch/blackfin/kernel/kgdb.c index fa53fae..b1cc04f 100644
>--- a/arch/blackfin/kernel/kgdb.c
>+++ b/arch/blackfin/kernel/kgdb.c
>@@ -359,19 +359,6 @@ void kgdb_roundup_cpu(int cpu, unsigned long flags) static unsigned long kgdb_arch_imask; #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 err_code, char *remcom_in_buffer,
> char *remcom_out_buffer,
>--
>1.7.10.4
>
>
>------------------------------------------------------------------------------
>Dive into the World of Parallel Programming! The Go Parallel Website,
>sponsored by Intel and developed in partnership with Slashdot Media, is your
>hub for all things parallel software development, from weekly thought
>leadership blogs to news, videos, case studies, tutorials and more. Take a
>look and join the conversation now. http://goparallel.sourceforge.net
>_______________________________________________
>Adi-buildroot-devel mailing list
>Adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx
>https://lists.sourceforge.net/lists/listinfo/adi-buildroot-devel

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/