diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-04-03 15:00:27 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-04-29 09:42:43 +0100 |
commit | 614f6fa76872f92e0c304602402c1cffde23aed7 (patch) | |
tree | 9657cfa00210a65785f3b201f971ff52023a0248 | |
parent | 0224ff86cee249e338bbc2f43c7c2516ee081ad7 (diff) |
gator: Fix build warning
Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r-- | drivers/gator/gator_backtrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gator/gator_backtrace.c b/drivers/gator/gator_backtrace.c index 94f01e6790e7..6bd8ea2308c7 100644 --- a/drivers/gator/gator_backtrace.c +++ b/drivers/gator/gator_backtrace.c @@ -89,11 +89,12 @@ static void arm_backtrace_eabi(int cpu, struct pt_regs *const regs, unsigned int #if defined(__arm__) || defined(__aarch64__) static int report_trace(struct stackframe *frame, void *d) { - unsigned int *depth = d, cookie = NO_COOKIE, cpu = get_physical_cpu(); + unsigned int *depth = d, cookie = NO_COOKIE; unsigned long addr = frame->pc; if (*depth) { #if defined(MODULE) + unsigned int cpu = get_physical_cpu(); struct module *mod = __module_address(addr); if (mod) { cookie = get_cookie(cpu, current, mod->name, false); |