diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-04-03 15:00:27 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-04-03 15:00:27 +0100 |
commit | 2e03b0fdd056a505abdc63c03615fa041f2276f8 (patch) | |
tree | 83fd34363ba1d9e4a2f6ba4cdaa049ab264b220c | |
parent | d2e393e18fb04e65bf54112b7f81e8fe9f2d608d (diff) |
gator: Fix build warninggator-5.14.0-0
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 94f01e6790e..6bd8ea2308c 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); |