Re: [PATCH] kgdb: Fix warning with !CONFIG_DEBUG_RODATA

2012-09-21 Thread Andi Kleen
On Fri, Sep 21, 2012 at 04:01:55PM -0500, Jason Wessel wrote: > On 09/21/2012 03:59 PM, Andi Kleen wrote: > > From: Andi Kleen > > > > Fixes > > > > arch/x86/kernel/kgdb.c: In function ‘kgdb_arch_set_breakpoint’: > > arch/x86/kernel/kgdb.c:749:7: warning: unused variable ‘opc’ > > [-Wunused-var

Re: [PATCH] kgdb: Fix warning with !CONFIG_DEBUG_RODATA

2012-09-21 Thread Jason Wessel
On 09/21/2012 03:59 PM, Andi Kleen wrote: > From: Andi Kleen > > Fixes > > arch/x86/kernel/kgdb.c: In function ‘kgdb_arch_set_breakpoint’: > arch/x86/kernel/kgdb.c:749:7: warning: unused variable ‘opc’ > [-Wunused-variable] > > when CONFIG_DEBUG_RODATA is not defined. > This is already pendi

[PATCH] kgdb: Fix warning with !CONFIG_DEBUG_RODATA

2012-09-21 Thread Andi Kleen
From: Andi Kleen Fixes arch/x86/kernel/kgdb.c: In function ‘kgdb_arch_set_breakpoint’: arch/x86/kernel/kgdb.c:749:7: warning: unused variable ‘opc’ [-Wunused-variable] when CONFIG_DEBUG_RODATA is not defined. Signed-off-by: Andi Kleen --- arch/x86/kernel/kgdb.c |2 ++ 1 files changed, 2