diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-02-10 20:46:14 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-02-12 08:10:50 +0900 |
commit | c2ec15074a5d368b97af2793926055c63c889815 (patch) | |
tree | 9a303456a5f7097f7675cda37a0a5ecd5598fed6 /kexec/arch/mips/kexec-elf-mips.c | |
parent | f9dac450c212ca313e621904aab9f0723456a8b6 (diff) |
mips: fix warning about implicit type conversion.
Fixes the following warning.
kexec/arch/mips/kexec-elf-mips.c:161:16: warning: assignment makes integer from pointer without a cast [enabled by default]
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/mips/kexec-elf-mips.c')
-rw-r--r-- | kexec/arch/mips/kexec-elf-mips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/mips/kexec-elf-mips.c b/kexec/arch/mips/kexec-elf-mips.c index a27d986..8a6419a 100644 --- a/kexec/arch/mips/kexec-elf-mips.c +++ b/kexec/arch/mips/kexec-elf-mips.c @@ -158,7 +158,7 @@ int elf_mips_load(int argc, char **argv, const char *buf, off_t len, if (info->kexec_flags & KEXEC_ON_CRASH) /* In case of crashdump segment[0] is kernel. * Put cmdline just after it. */ - cmdline_addr = info->segment[0].mem + + cmdline_addr = (unsigned long)info->segment[0].mem + info->segment[0].memsz; else cmdline_addr = 0; |