MIPS: VPE: Fix compiler warning.
authorRaghu Gandham <raghu@mips.com>
Fri, 10 Jul 2009 09:01:32 +0000 (02:01 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 3 Aug 2009 16:52:48 +0000 (17:52 +0100)
Signed-off-by: Raghu Gandham <raghu@mips.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vpe.c

index 07b9ec2c6e3d04d1194a46a66e6783f2dcf0d29b..3d4ef841d82976a2ca3049c4f91a9ade95a99b51 100644 (file)
@@ -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)