diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2008-11-18 04:48:22 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-11-18 04:48:22 -0500 |
commit | 36f649a55aa3ad1e2196403ba95a652f9900bc50 (patch) | |
tree | b2a547a3c946ccc1377b4ac0787806128f1d1a4e /arch/blackfin/kernel | |
parent | 400597842452c02916a61a51f3154dd032c2d569 (diff) |
Blackfin arch: do not define decode_instruction if hwtrace is turned off
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/kernel')
-rw-r--r-- | arch/blackfin/kernel/traps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/traps.c b/arch/blackfin/kernel/traps.c index af7cc43630de..950cc822fb75 100644 --- a/arch/blackfin/kernel/traps.c +++ b/arch/blackfin/kernel/traps.c | |||
@@ -649,13 +649,13 @@ static bool get_instruction(unsigned short *val, unsigned short *address) | |||
649 | return false; | 649 | return false; |
650 | } | 650 | } |
651 | 651 | ||
652 | /* | 652 | /* |
653 | * decode the instruction if we are printing out the trace, as it | 653 | * decode the instruction if we are printing out the trace, as it |
654 | * makes things easier to follow, without running it through objdump | 654 | * makes things easier to follow, without running it through objdump |
655 | * These are the normal instructions which cause change of flow, which | 655 | * These are the normal instructions which cause change of flow, which |
656 | * would be at the source of the trace buffer | 656 | * would be at the source of the trace buffer |
657 | */ | 657 | */ |
658 | #ifdef CONFIG_DEBUG_VERBOSE | 658 | #if defined(CONFIG_DEBUG_VERBOSE) && defined(CONFIG_DEBUG_BFIN_HWTRACE_ON) |
659 | static void decode_instruction(unsigned short *address) | 659 | static void decode_instruction(unsigned short *address) |
660 | { | 660 | { |
661 | unsigned short opcode; | 661 | unsigned short opcode; |