Commit 36f649a5 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu

Blackfin arch: do not define decode_instruction if hwtrace is turned off

Signed-off-by: default avatarMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
parent 40059784
...@@ -649,13 +649,13 @@ static bool get_instruction(unsigned short *val, unsigned short *address) ...@@ -649,13 +649,13 @@ static bool get_instruction(unsigned short *val, unsigned short *address)
return false; return false;
} }
/* /*
* decode the instruction if we are printing out the trace, as it * decode the instruction if we are printing out the trace, as it
* makes things easier to follow, without running it through objdump * makes things easier to follow, without running it through objdump
* These are the normal instructions which cause change of flow, which * These are the normal instructions which cause change of flow, which
* would be at the source of the trace buffer * would be at the source of the trace buffer
*/ */
#ifdef CONFIG_DEBUG_VERBOSE #if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_BFIN_HWTRACE_ON)
static void decode_instruction(unsigned short *address) static void decode_instruction(unsigned short *address)
{ {
unsigned short opcode; unsigned short opcode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment