public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] blackfin: remove dump_thread()
@ 2007-11-05 17:07 Adrian Bunk
  2007-11-07  3:07 ` Bryan Wu
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2007-11-05 17:07 UTC (permalink / raw)
  To: bryan.wu; +Cc: linux-kernel

This patch removes the unused dump_thread().

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 arch/blackfin/kernel/bfin_ksyms.c  |    1 
 arch/blackfin/kernel/process.c     |   45 -----------------------------
 include/asm-blackfin/bfin-global.h |    1 
 3 files changed, 47 deletions(-)

c7746b10ac98a3166a7257f7117dd125e5ba4c7b 
diff --git a/arch/blackfin/kernel/bfin_ksyms.c b/arch/blackfin/kernel/bfin_ksyms.c
index 2198afe..99ea57c 100644
--- a/arch/blackfin/kernel/bfin_ksyms.c
+++ b/arch/blackfin/kernel/bfin_ksyms.c
@@ -39,7 +39,6 @@
 EXPORT_SYMBOL(__ioremap);
 EXPORT_SYMBOL(strcmp);
 EXPORT_SYMBOL(strncmp);
-EXPORT_SYMBOL(dump_thread);
 
 EXPORT_SYMBOL(ip_fast_csum);
 
diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c
index 9124467..1a8cf33 100644
--- a/arch/blackfin/kernel/process.c
+++ b/arch/blackfin/kernel/process.c
@@ -239,51 +239,6 @@ copy_thread(int nr, unsigned long clone_flags,
 }
 
 /*
- * fill in the user structure for a core dump..
- */
-void dump_thread(struct pt_regs *regs, struct user *dump)
-{
-	dump->magic = CMAGIC;
-	dump->start_code = 0;
-	dump->start_stack = rdusp() & ~(PAGE_SIZE - 1);
-	dump->u_tsize = ((unsigned long)current->mm->end_code) >> PAGE_SHIFT;
-	dump->u_dsize = ((unsigned long)(current->mm->brk +
-					 (PAGE_SIZE - 1))) >> PAGE_SHIFT;
-	dump->u_dsize -= dump->u_tsize;
-	dump->u_ssize = 0;
-
-	if (dump->start_stack < TASK_SIZE)
-		dump->u_ssize =
-		    ((unsigned long)(TASK_SIZE -
-				     dump->start_stack)) >> PAGE_SHIFT;
-
-	dump->u_ar0 = (struct user_regs_struct *)((int)&dump->regs - (int)dump);
-
-	dump->regs.r0 = regs->r0;
-	dump->regs.r1 = regs->r1;
-	dump->regs.r2 = regs->r2;
-	dump->regs.r3 = regs->r3;
-	dump->regs.r4 = regs->r4;
-	dump->regs.r5 = regs->r5;
-	dump->regs.r6 = regs->r6;
-	dump->regs.r7 = regs->r7;
-	dump->regs.p0 = regs->p0;
-	dump->regs.p1 = regs->p1;
-	dump->regs.p2 = regs->p2;
-	dump->regs.p3 = regs->p3;
-	dump->regs.p4 = regs->p4;
-	dump->regs.p5 = regs->p5;
-	dump->regs.orig_p0 = regs->orig_p0;
-	dump->regs.a0w = regs->a0w;
-	dump->regs.a1w = regs->a1w;
-	dump->regs.a0x = regs->a0x;
-	dump->regs.a1x = regs->a1x;
-	dump->regs.rets = regs->rets;
-	dump->regs.astat = regs->astat;
-	dump->regs.pc = regs->pc;
-}
-
-/*
  * sys_execve() executes a new program.
  */
 
diff --git a/include/asm-blackfin/bfin-global.h b/include/asm-blackfin/bfin-global.h
index 0212e18..cd924bb 100644
--- a/include/asm-blackfin/bfin-global.h
+++ b/include/asm-blackfin/bfin-global.h
@@ -50,7 +50,6 @@ extern unsigned long get_sclk(void);
 extern unsigned long sclk_to_usecs(unsigned long sclk);
 extern unsigned long usecs_to_sclk(unsigned long usecs);
 
-extern void dump_thread(struct pt_regs *regs, struct user *dump);
 extern void dump_bfin_regs(struct pt_regs *fp, void *retaddr);
 extern void dump_bfin_trace_buffer(void);
 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [2.6 patch] blackfin: remove dump_thread()
  2007-11-05 17:07 [2.6 patch] blackfin: remove dump_thread() Adrian Bunk
@ 2007-11-07  3:07 ` Bryan Wu
  2007-11-07  3:28   ` Adrian Bunk
  0 siblings, 1 reply; 5+ messages in thread
From: Bryan Wu @ 2007-11-07  3:07 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: bryan.wu, linux-kernel

On 11/6/07, Adrian Bunk <bunk@kernel.org> wrote:
> This patch removes the unused dump_thread().
>

Why only remove it from Blackfin? any more reason?
I found this in latest 2.6.24-rc2:

--
Cscope tag: dump_thread
   #   line  filename / context / line
   1    324  arch/alpha/kernel/process.c <<dump_thread>>
             dump_thread(struct pt_regs * pt, struct user * dump)
   2    373  arch/arm/kernel/process.c <<dump_thread>>
             void dump_thread(struct pt_regs * regs, struct user * dump)
   3    244  arch/blackfin/kernel/process.c <<dump_thread>>
             void dump_thread(struct pt_regs *regs, struct user *dump)
   4    321  arch/m68k/kernel/process.c <<dump_thread>>
             void dump_thread(struct pt_regs * regs, struct user * dump)
   5    572  arch/sparc/kernel/process.c <<dump_thread>>
             void dump_thread(struct pt_regs * regs, struct user * dump)
   6    731  arch/sparc64/kernel/process.c <<dump_thread>>
             void dump_thread(struct pt_regs * regs, struct user * dump)
   7    306  arch/um/kernel/process.c <<dump_thread>>
             void dump_thread(struct pt_regs *regs, struct user *u)
   8    519  arch/x86/kernel/process_32.c <<dump_thread>>
             void dump_thread(struct pt_regs * regs, struct user * dump)
--

Regards,
-Bryan

> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>
> ---
>
>  arch/blackfin/kernel/bfin_ksyms.c  |    1
>  arch/blackfin/kernel/process.c     |   45 -----------------------------
>  include/asm-blackfin/bfin-global.h |    1
>  3 files changed, 47 deletions(-)
>
> c7746b10ac98a3166a7257f7117dd125e5ba4c7b
> diff --git a/arch/blackfin/kernel/bfin_ksyms.c b/arch/blackfin/kernel/bfin_ksyms.c
> index 2198afe..99ea57c 100644
> --- a/arch/blackfin/kernel/bfin_ksyms.c
> +++ b/arch/blackfin/kernel/bfin_ksyms.c
> @@ -39,7 +39,6 @@
>  EXPORT_SYMBOL(__ioremap);
>  EXPORT_SYMBOL(strcmp);
>  EXPORT_SYMBOL(strncmp);
> -EXPORT_SYMBOL(dump_thread);
>
>  EXPORT_SYMBOL(ip_fast_csum);
>
> diff --git a/arch/blackfin/kernel/process.c b/arch/blackfin/kernel/process.c
> index 9124467..1a8cf33 100644
> --- a/arch/blackfin/kernel/process.c
> +++ b/arch/blackfin/kernel/process.c
> @@ -239,51 +239,6 @@ copy_thread(int nr, unsigned long clone_flags,
>  }
>
>  /*
> - * fill in the user structure for a core dump..
> - */
> -void dump_thread(struct pt_regs *regs, struct user *dump)
> -{
> -       dump->magic = CMAGIC;
> -       dump->start_code = 0;
> -       dump->start_stack = rdusp() & ~(PAGE_SIZE - 1);
> -       dump->u_tsize = ((unsigned long)current->mm->end_code) >> PAGE_SHIFT;
> -       dump->u_dsize = ((unsigned long)(current->mm->brk +
> -                                        (PAGE_SIZE - 1))) >> PAGE_SHIFT;
> -       dump->u_dsize -= dump->u_tsize;
> -       dump->u_ssize = 0;
> -
> -       if (dump->start_stack < TASK_SIZE)
> -               dump->u_ssize =
> -                   ((unsigned long)(TASK_SIZE -
> -                                    dump->start_stack)) >> PAGE_SHIFT;
> -
> -       dump->u_ar0 = (struct user_regs_struct *)((int)&dump->regs - (int)dump);
> -
> -       dump->regs.r0 = regs->r0;
> -       dump->regs.r1 = regs->r1;
> -       dump->regs.r2 = regs->r2;
> -       dump->regs.r3 = regs->r3;
> -       dump->regs.r4 = regs->r4;
> -       dump->regs.r5 = regs->r5;
> -       dump->regs.r6 = regs->r6;
> -       dump->regs.r7 = regs->r7;
> -       dump->regs.p0 = regs->p0;
> -       dump->regs.p1 = regs->p1;
> -       dump->regs.p2 = regs->p2;
> -       dump->regs.p3 = regs->p3;
> -       dump->regs.p4 = regs->p4;
> -       dump->regs.p5 = regs->p5;
> -       dump->regs.orig_p0 = regs->orig_p0;
> -       dump->regs.a0w = regs->a0w;
> -       dump->regs.a1w = regs->a1w;
> -       dump->regs.a0x = regs->a0x;
> -       dump->regs.a1x = regs->a1x;
> -       dump->regs.rets = regs->rets;
> -       dump->regs.astat = regs->astat;
> -       dump->regs.pc = regs->pc;
> -}
> -
> -/*
>   * sys_execve() executes a new program.
>   */
>
> diff --git a/include/asm-blackfin/bfin-global.h b/include/asm-blackfin/bfin-global.h
> index 0212e18..cd924bb 100644
> --- a/include/asm-blackfin/bfin-global.h
> +++ b/include/asm-blackfin/bfin-global.h
> @@ -50,7 +50,6 @@ extern unsigned long get_sclk(void);
>  extern unsigned long sclk_to_usecs(unsigned long sclk);
>  extern unsigned long usecs_to_sclk(unsigned long usecs);
>
> -extern void dump_thread(struct pt_regs *regs, struct user *dump);
>  extern void dump_bfin_regs(struct pt_regs *fp, void *retaddr);
>  extern void dump_bfin_trace_buffer(void);
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [2.6 patch] blackfin: remove dump_thread()
  2007-11-07  3:07 ` Bryan Wu
@ 2007-11-07  3:28   ` Adrian Bunk
  2007-11-07  3:39     ` Bryan Wu
  0 siblings, 1 reply; 5+ messages in thread
From: Adrian Bunk @ 2007-11-07  3:28 UTC (permalink / raw)
  To: Bryan Wu; +Cc: bryan.wu, linux-kernel

On Wed, Nov 07, 2007 at 11:07:06AM +0800, Bryan Wu wrote:
> On 11/6/07, Adrian Bunk <bunk@kernel.org> wrote:
> > This patch removes the unused dump_thread().
> >
> 
> Why only remove it from Blackfin? any more reason?

The only user is the a.out support.

It was therefore removed prior to the blackfin merge from all 
architectures not supporting a.out.

> I found this in latest 2.6.24-rc2:
> 
> --
> Cscope tag: dump_thread
>    #   line  filename / context / line
>    1    324  arch/alpha/kernel/process.c <<dump_thread>>
>              dump_thread(struct pt_regs * pt, struct user * dump)
>    2    373  arch/arm/kernel/process.c <<dump_thread>>
>              void dump_thread(struct pt_regs * regs, struct user * dump)
>    3    244  arch/blackfin/kernel/process.c <<dump_thread>>
>              void dump_thread(struct pt_regs *regs, struct user *dump)
>    4    321  arch/m68k/kernel/process.c <<dump_thread>>
>              void dump_thread(struct pt_regs * regs, struct user * dump)
>    5    572  arch/sparc/kernel/process.c <<dump_thread>>
>              void dump_thread(struct pt_regs * regs, struct user * dump)
>    6    731  arch/sparc64/kernel/process.c <<dump_thread>>
>              void dump_thread(struct pt_regs * regs, struct user * dump)
>    7    306  arch/um/kernel/process.c <<dump_thread>>
>              void dump_thread(struct pt_regs *regs, struct user *u)
>    8    519  arch/x86/kernel/process_32.c <<dump_thread>>
>              void dump_thread(struct pt_regs * regs, struct user * dump)
> --
> 
> Regards,
> -Bryan

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [2.6 patch] blackfin: remove dump_thread()
  2007-11-07  3:28   ` Adrian Bunk
@ 2007-11-07  3:39     ` Bryan Wu
  2007-11-07  3:41       ` Mike Frysinger
  0 siblings, 1 reply; 5+ messages in thread
From: Bryan Wu @ 2007-11-07  3:39 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: bryan.wu, linux-kernel

On Nov 7, 2007 11:28 AM, Adrian Bunk <bunk@kernel.org> wrote:
> On Wed, Nov 07, 2007 at 11:07:06AM +0800, Bryan Wu wrote:
> > On 11/6/07, Adrian Bunk <bunk@kernel.org> wrote:
> > > This patch removes the unused dump_thread().
> > >
> >
> > Why only remove it from Blackfin? any more reason?
>
> The only user is the a.out support.
>
> It was therefore removed prior to the blackfin merge from all
> architectures not supporting a.out.
>

OK, make sense. Currently, Blackfin doesn't suppport a.out.

Acked-by: Bryan Wu <bryan.wu@analog.com>



> > I found this in latest 2.6.24-rc2:
> >
> > --
> > Cscope tag: dump_thread
> >    #   line  filename / context / line
> >    1    324  arch/alpha/kernel/process.c <<dump_thread>>
> >              dump_thread(struct pt_regs * pt, struct user * dump)
> >    2    373  arch/arm/kernel/process.c <<dump_thread>>
> >              void dump_thread(struct pt_regs * regs, struct user * dump)
> >    3    244  arch/blackfin/kernel/process.c <<dump_thread>>
> >              void dump_thread(struct pt_regs *regs, struct user *dump)
> >    4    321  arch/m68k/kernel/process.c <<dump_thread>>
> >              void dump_thread(struct pt_regs * regs, struct user * dump)
> >    5    572  arch/sparc/kernel/process.c <<dump_thread>>
> >              void dump_thread(struct pt_regs * regs, struct user * dump)
> >    6    731  arch/sparc64/kernel/process.c <<dump_thread>>
> >              void dump_thread(struct pt_regs * regs, struct user * dump)
> >    7    306  arch/um/kernel/process.c <<dump_thread>>
> >              void dump_thread(struct pt_regs *regs, struct user *u)
> >    8    519  arch/x86/kernel/process_32.c <<dump_thread>>
> >              void dump_thread(struct pt_regs * regs, struct user * dump)
> > --
> >
> > Regards,
> > -Bryan
>
> cu
> Adrian
>
> --
>
>        "Is there not promise of rain?" Ling Tan asked suddenly out
>         of the darkness. There had been need of rain for many days.
>        "Only a promise," Lao Er said.
>                                        Pearl S. Buck - Dragon Seed
>
>

Thanks a lot.
-Bryan Wu

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [2.6 patch] blackfin: remove dump_thread()
  2007-11-07  3:39     ` Bryan Wu
@ 2007-11-07  3:41       ` Mike Frysinger
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2007-11-07  3:41 UTC (permalink / raw)
  To: Bryan Wu; +Cc: Adrian Bunk, bryan.wu, linux-kernel

On Nov 6, 2007 10:39 PM, Bryan Wu <cooloney.lkml@gmail.com> wrote:
> On Nov 7, 2007 11:28 AM, Adrian Bunk <bunk@kernel.org> wrote:
> > On Wed, Nov 07, 2007 at 11:07:06AM +0800, Bryan Wu wrote:
> > > On 11/6/07, Adrian Bunk <bunk@kernel.org> wrote:
> > > > This patch removes the unused dump_thread().
> > >
> > > Why only remove it from Blackfin? any more reason?
> >
> > The only user is the a.out support.
> >
> > It was therefore removed prior to the blackfin merge from all
> > architectures not supporting a.out.
>
> OK, make sense. Currently, Blackfin doesn't suppport a.out.

and hopefully never will
-mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-07  3:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-05 17:07 [2.6 patch] blackfin: remove dump_thread() Adrian Bunk
2007-11-07  3:07 ` Bryan Wu
2007-11-07  3:28   ` Adrian Bunk
2007-11-07  3:39     ` Bryan Wu
2007-11-07  3:41       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox