diff options
author | Al Stone <ahs3@redhat.com> | 2013-01-17 09:29:14 -0700 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2013-03-14 10:45:50 +0530 |
commit | 12587ba121813e1366b0b8b05c531f4ca24dc56a (patch) | |
tree | 1702b36763386a8ff82e019b877b7463e0008437 /arch | |
parent | 1f1286ae8258e27ee25d976cce41aef301b41618 (diff) |
ARM: Fix compile error if CONFIG_ARM_UNWIND is not defined
If CONFIG_ARM_UNWIND is not set for some reason, module_finalize()
will not compile due to a missing declaration for 'err'. Moved
the declaration outside of an #ifdef so that the code will compile
regardless of the value of CONFIG_ARM_UNWIND.
Signed-off-by: Al Stone <ahs3@redhat.com>
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 1e9be5d25e56..9cf3d3203732 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c @@ -272,6 +272,7 @@ int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mod) { const Elf_Shdr *s = NULL; + int err; #ifdef CONFIG_ARM_UNWIND const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum; |