Skip to contentSkip to conversation

Fix compiler warning in vpe.c

PATCH Applied Raghu Gandham 2 participants 2 messages Jul 10, 2009 – Aug 5, 2009 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compiler warning in vpe.c

---

 arch/mips/kernel/vpe.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/mips/kernel/vpe.c +2 -1
index 07b9ec2..3d4ef84 100644
@@ -327,7 +327,8 @@ static void layout_sections(struct module *mod, const Elf_Ehdr * hdr,
 			    || (s->sh_flags & masks[m][1])
 			    || s->sh_entsize != ~0UL)
 				continue;
-			s->sh_entsize = get_offset(&mod->core_size, s);
+			s->sh_entsize =
+				get_offset((unsigned long *)&mod->core_size, s);
 		}
 
 		if (m == 0)
Applied
#1 lore raw

On Fri, Jul 10, 2009 at 02:01:32AM -0700, Raghu Gandham wrote:

Applied. Thanks,

Ralf