]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kgdb,x86: fix warning about unused variable
authorJason Wessel <jason.wessel@windriver.com>
Thu, 9 Aug 2012 02:12:19 +0000 (21:12 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Sun, 12 Aug 2012 12:02:16 +0000 (07:02 -0500)
commit9a15c35d16cf76482be076125f631f1193e29413
treeffd87bd2f61027493a1d2c2eb1a14f8a31782bf1
parent4a1d7e961fe55c8bec764e306f0220304c0fd10c
kgdb,x86: fix warning about unused variable

When compiling without CONFIG_DEBUG_RODATA the following
compiler warning is generated:

arch/x86/kernel/kgdb.c: In function 'kgdb_arch_set_breakpoint':
arch/x86/kernel/kgdb.c:749: warning: unused variable 'opc'

The variable instantiation needs to be inside the #ifdef to
make the warning go away.

Reported-by: Thiago Rafael Becker <trbecker@trbecker.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
arch/x86/kernel/kgdb.c