mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL] kgdb compile fix for 3.0 rc7
@ 2011-07-21 22:36 Jason Wessel
  2011-07-21 22:36 ` [PATCH] sparc,kgdbts: fix compile regression with kgdb test suite Jason Wessel
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Wessel @ 2011-07-21 22:36 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, kgdb-bugreport

Linus, please pull the for_linus branch to pick up a sparc compile
regression that was picked up early in the 3.0 cycle.

git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_linus

Thanks,
Jason.

---
The following changes since commit 3a5c3743f15f27237ab025736a981e2d0c9fdfed:

  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (2011-07-18 13:29:26 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_linus

Jason Wessel (1):
      sparc,kgdbts: fix compile regression with kgdb test suite

 arch/sparc/include/asm/ptrace.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


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

* [PATCH] sparc,kgdbts: fix compile regression with kgdb test suite
  2011-07-21 22:36 [GIT PULL] kgdb compile fix for 3.0 rc7 Jason Wessel
@ 2011-07-21 22:36 ` Jason Wessel
  0 siblings, 0 replies; 5+ messages in thread
From: Jason Wessel @ 2011-07-21 22:36 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, kgdb-bugreport

Commit 63ab25ebbc (kgdbts: unify/generalize gdb breakpoint adjustment)
introduced a compile regression on sparc.

kgdbts.c: In function 'check_and_rewind_pc':
kgdbts.c:307: error: implicit declaration of function 'instruction_pointer_set'

Simply add the correct macro definition for instruction pointer on the
Sparc architecture.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: David S. Miller <davem@davemloft.net>
---
 arch/sparc/include/asm/ptrace.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h
index c7ad3fe..b928b31 100644
--- a/arch/sparc/include/asm/ptrace.h
+++ b/arch/sparc/include/asm/ptrace.h
@@ -205,6 +205,7 @@ do {	current_thread_info()->syscall_noerror = 1; \
 } while (0)
 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
 #define instruction_pointer(regs) ((regs)->tpc)
+#define instruction_pointer_set(regs, val) ((regs)->tpc = (val))
 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
 #define regs_return_value(regs) ((regs)->u_regs[UREG_I0])
 #ifdef CONFIG_SMP
-- 
1.7.1


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

* Re: [PATCH] sparc,kgdbts: fix compile regression with kgdb test suite
  2011-07-19 20:58 Jason Wessel
  2011-07-19 21:06 ` Mike Frysinger
@ 2011-07-21 21:45 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2011-07-21 21:45 UTC (permalink / raw)
  To: jason.wessel; +Cc: kgdb-bugreport, linux-kernel, sparclinux, vapier

From: Jason Wessel <jason.wessel@windriver.com>
Date: Tue, 19 Jul 2011 15:58:32 -0500

> Commit 63ab25ebbc (kgdbts: unify/generalize gdb breakpoint adjustment)
> introduced a compile regression on sparc.
> 
> kgdbts.c: In function 'check_and_rewind_pc':
> kgdbts.c:307: error: implicit declaration of function 'instruction_pointer_set'
> 
> Simply add the correct macro definition for instruction pointer on the
> Sparc architecture.
> 
> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>

Acked-by: David S. Miller <davem@davemloft.net>

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

* Re: [PATCH] sparc,kgdbts: fix compile regression with kgdb test suite
  2011-07-19 20:58 Jason Wessel
@ 2011-07-19 21:06 ` Mike Frysinger
  2011-07-21 21:45 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2011-07-19 21:06 UTC (permalink / raw)
  To: Jason Wessel; +Cc: davem, kgdb-bugreport, linux-kernel, sparclinux

On Tue, Jul 19, 2011 at 16:58, Jason Wessel wrote:
> Commit 63ab25ebbc (kgdbts: unify/generalize gdb breakpoint adjustment)
> introduced a compile regression on sparc.
>
> kgdbts.c: In function 'check_and_rewind_pc':
> kgdbts.c:307: error: implicit declaration of function 'instruction_pointer_set'
>
> Simply add the correct macro definition for instruction pointer on the
> Sparc architecture.

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike

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

* [PATCH] sparc,kgdbts: fix compile regression with kgdb test suite
@ 2011-07-19 20:58 Jason Wessel
  2011-07-19 21:06 ` Mike Frysinger
  2011-07-21 21:45 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Wessel @ 2011-07-19 20:58 UTC (permalink / raw)
  To: davem; +Cc: kgdb-bugreport, linux-kernel, sparclinux, vapier

Commit 63ab25ebbc (kgdbts: unify/generalize gdb breakpoint adjustment)
introduced a compile regression on sparc.

kgdbts.c: In function 'check_and_rewind_pc':
kgdbts.c:307: error: implicit declaration of function 'instruction_pointer_set'

Simply add the correct macro definition for instruction pointer on the
Sparc architecture.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
 arch/sparc/include/asm/ptrace.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/ptrace.h b/arch/sparc/include/asm/ptrace.h
index c7ad3fe..b928b31 100644
--- a/arch/sparc/include/asm/ptrace.h
+++ b/arch/sparc/include/asm/ptrace.h
@@ -205,6 +205,7 @@ do {	current_thread_info()->syscall_noerror = 1; \
 } while (0)
 #define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
 #define instruction_pointer(regs) ((regs)->tpc)
+#define instruction_pointer_set(regs, val) ((regs)->tpc = (val))
 #define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
 #define regs_return_value(regs) ((regs)->u_regs[UREG_I0])
 #ifdef CONFIG_SMP
-- 
1.7.1


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

end of thread, other threads:[~2011-07-21 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 22:36 [GIT PULL] kgdb compile fix for 3.0 rc7 Jason Wessel
2011-07-21 22:36 ` [PATCH] sparc,kgdbts: fix compile regression with kgdb test suite Jason Wessel
  -- strict thread matches above, loose matches on Subject: below --
2011-07-19 20:58 Jason Wessel
2011-07-19 21:06 ` Mike Frysinger
2011-07-21 21:45 ` David Miller

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

all inboxes | Powered by JetHome®