DORMANTno replies

[PATCH -next] arm: fix compilation warning in next-20110202 build

From: Sourav Poddar <hidden>
Date: 2011-02-02 15:27:13
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

Building linux-next:next-20110202 with omap2plus_defconfig
results in the following compilation warning.

arch/arm/kernel/module.c:272: warning: 'find_mod_section' defined but not used.

Call to find_mod_section function is under a compilation flag but the
same is not true for its definition. Putting compilation flag around its
definition removes the warning.

Signed-off-by: Sourav Poddar <redacted>
Cc: Russell King <redacted>
---
 arch/arm/kernel/module.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c
index 74e25ab..ba65805 100644
--- a/arch/arm/kernel/module.c
+++ b/arch/arm/kernel/module.c
@@ -269,6 +269,7 @@ struct mod_unwind_map {
 	const Elf_Shdr *txt_sec;
 };
 
+#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
 static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr,
 	const Elf_Shdr *sechdrs, const char *name)
 {
@@ -281,6 +282,7 @@ static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr,
 
 	return NULL;
 }
+#endif
 
 extern void fixup_pv_table(const void *, unsigned long);
 
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help