summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorRaghu Gandham <raghu@mips.com>2009-07-10 11:01:32 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-08-03 18:52:48 +0200
commite2a9cf96a0af24f33206b4bb98cc3a12242260c1 (patch)
tree7b450b2e1e5643c6283d4ef5bd9c0afb85e74279 /arch/mips/kernel
parentMIPS: Module: Make error messages unique. (diff)
downloadlinux-e2a9cf96a0af24f33206b4bb98cc3a12242260c1.tar.xz
linux-e2a9cf96a0af24f33206b4bb98cc3a12242260c1.zip
MIPS: VPE: Fix compiler warning.
Signed-off-by: Raghu Gandham <raghu@mips.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r--arch/mips/kernel/vpe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index 07b9ec2c6e3d..3d4ef841d829 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -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)