0005-mips-fix-warning-about-implicit-type-conversion.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. From 00e75179b3b4b80e6e58d29a2bd948f97682fd00 Mon Sep 17 00:00:00 2001
  2. From: Yousong Zhou <yszhou4tech@gmail.com>
  3. Date: Mon, 9 Feb 2015 20:28:14 +0800
  4. Subject: [PATCH 5/5] mips: fix warning about implicit type conversion.
  5. Fixes the following warning.
  6. kexec/arch/mips/kexec-elf-mips.c:161:16: warning: assignment makes integer from pointer without a cast [enabled by default]
  7. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  8. ---
  9. kexec/arch/mips/kexec-elf-mips.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/kexec/arch/mips/kexec-elf-mips.c b/kexec/arch/mips/kexec-elf-mips.c
  12. index a27d986..8a6419a 100644
  13. --- a/kexec/arch/mips/kexec-elf-mips.c
  14. +++ b/kexec/arch/mips/kexec-elf-mips.c
  15. @@ -158,7 +158,7 @@ int elf_mips_load(int argc, char **argv, const char *buf, off_t len,
  16. if (info->kexec_flags & KEXEC_ON_CRASH)
  17. /* In case of crashdump segment[0] is kernel.
  18. * Put cmdline just after it. */
  19. - cmdline_addr = info->segment[0].mem +
  20. + cmdline_addr = (unsigned long)info->segment[0].mem +
  21. info->segment[0].memsz;
  22. else
  23. cmdline_addr = 0;
  24. --
  25. 1.7.10.4