ptrace: remove PT_DTRACE from m68k, m68knommu
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:27 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:48 +0000 (13:03 -0700)
m68k sets PT_DTRACE in trap_c() but never uses it.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@snapgear.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/kernel/traps.c
arch/m68knommu/kernel/asm-offsets.c
arch/m68knommu/kernel/traps.c

index 184acc90808dd22f591f314d62c713ca9a325677..aacd6d17b83373b4bab02b0710e69978b5472c08 100644 (file)
@@ -1057,7 +1057,6 @@ asmlinkage void trap_c(struct frame *fp)
        if (fp->ptregs.sr & PS_S) {
                if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
                        /* traced a trapping instruction */
-                       current->ptrace |= PT_DTRACE;
                } else
                        bad_super_trap(fp);
                return;
index f500dd6935d62a59a2887c50a6c911e7029be044..594ee0e657fe0da77cbd20740c202b044e0d7ded 100644 (file)
@@ -73,7 +73,6 @@ int main(void)
        DEFINE(TRAP_TRACE, TRAP_TRACE);
 
        DEFINE(PT_PTRACED, PT_PTRACED);
-       DEFINE(PT_DTRACE, PT_DTRACE);
 
        DEFINE(THREAD_SIZE, THREAD_SIZE);
 
index 5d5d56bcd0efd5121ff2965f83a6e200b4726866..51d325343ab58baaa3f5abe3396dbea067ae41c2 100644 (file)
@@ -200,7 +200,6 @@ asmlinkage void trap_c(struct frame *fp)
        if (fp->ptregs.sr & PS_S) {
                if ((fp->ptregs.vector >> 2) == VEC_TRACE) {
                        /* traced a trapping instruction */
-                       current->ptrace |= PT_DTRACE;
                } else
                        bad_super_trap(fp);
                return;