kexec.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion.
@ 2015-02-10 12:46 Yousong Zhou
  2015-02-10 12:46 ` [PATCH 2/4] mips: fix compiler warning on printing 64-bit integer Yousong Zhou
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Yousong Zhou @ 2015-02-10 12:46 UTC (permalink / raw)
  To: kexec; +Cc: Yousong Zhou, horms

This can fix the following error when searching for lzma support and
while at it also apply the practice to other uses of the same pattern.

	checking for lzma_code in -llzma... ./configure: line 4756: ac_fn_c_try_link: command not found

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 configure.ac |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index db93331..c410e90 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,22 +152,22 @@ AC_CHECK_PROG([DIRNAME],  dirname,  dirname,  "no", [$PATH])
 dnl See if I have a usable copy of zlib available
 if test "$with_zlib" = yes ; then
 	AC_CHECK_HEADER(zlib.h,
-		AC_CHECK_LIB(z, inflateInit_, ,
-		AC_MSG_NOTICE([zlib support disabled])))
+		[AC_CHECK_LIB(z, inflateInit_, ,
+		AC_MSG_NOTICE([zlib support disabled]))])
 fi
 
 dnl See if I have a usable copy of lzma available
 if test "$with_lzma" = yes ; then
 	AC_CHECK_HEADER(lzma.h,
-		AC_CHECK_LIB(lzma, lzma_code, ,
-		AC_MSG_NOTICE([lzma support disabled])))
+		[AC_CHECK_LIB(lzma, lzma_code, ,
+		AC_MSG_NOTICE([lzma support disabled]))])
 fi
 
 dnl find Xen control stack libraries
 if test "$with_xen" = yes ; then
 	AC_CHECK_HEADER(xenctrl.h,
-		AC_CHECK_LIB(xenctrl, xc_kexec_load, ,
-		AC_MSG_NOTICE([Xen support disabled])))
+		[AC_CHECK_LIB(xenctrl, xc_kexec_load, ,
+		AC_MSG_NOTICE([Xen support disabled]))])
 fi
 
 dnl ---Sanity checks
-- 
1.7.10.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] mips: fix compiler warning on printing 64-bit integer.
  2015-02-10 12:46 [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Yousong Zhou
@ 2015-02-10 12:46 ` Yousong Zhou
  2015-02-10 12:46 ` [PATCH 3/4] mips: remove unused variable Yousong Zhou
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Yousong Zhou @ 2015-02-10 12:46 UTC (permalink / raw)
  To: kexec; +Cc: Yousong Zhou, horms


Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 kexec/arch/mips/crashdump-mips.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
index e7840e0..98c9f7c 100644
--- a/kexec/arch/mips/crashdump-mips.c
+++ b/kexec/arch/mips/crashdump-mips.c
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include <errno.h>
 #include <limits.h>
+#include <inttypes.h>
 #include <elf.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -52,7 +53,7 @@ static int get_kernel_paddr(struct crash_elf_info *elf_info)
 
 	if (parse_iomem_single("Kernel code\n", &start, NULL) == 0) {
 		elf_info->kern_paddr_start = start;
-		dbgprintf("kernel load physical addr start = 0x%lx\n", start);
+		dbgprintf("kernel load physical addr start = 0x%" PRIu64 "\n", start);
 		return 0;
 	}
 
-- 
1.7.10.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] mips: remove unused variable.
  2015-02-10 12:46 [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Yousong Zhou
  2015-02-10 12:46 ` [PATCH 2/4] mips: fix compiler warning on printing 64-bit integer Yousong Zhou
@ 2015-02-10 12:46 ` Yousong Zhou
  2015-02-10 12:46 ` [PATCH 4/4] mips: fix warning about implicit type conversion Yousong Zhou
  2015-02-12  8:10 ` [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Simon Horman
  3 siblings, 0 replies; 5+ messages in thread
From: Yousong Zhou @ 2015-02-10 12:46 UTC (permalink / raw)
  To: kexec; +Cc: Yousong Zhou, horms

Fixes the following compilation warning.

	kexec/arch/mips/crashdump-mips.c:151:6: warning: unused variable 'i' [-Wunused-variable]

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 kexec/arch/mips/crashdump-mips.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
index 98c9f7c..dc68cb4 100644
--- a/kexec/arch/mips/crashdump-mips.c
+++ b/kexec/arch/mips/crashdump-mips.c
@@ -148,7 +148,7 @@ static int exclude_crash_reserve_region(int *nr_ranges)
 static int get_crash_memory_ranges(struct memory_range **range, int *ranges)
 {
 	const char iomem[] = "/proc/iomem";
-	int i, memory_ranges = 0;
+	int memory_ranges = 0;
 	char line[MAX_LINE];
 	FILE *fp;
 	unsigned long long start, end;
-- 
1.7.10.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] mips: fix warning about implicit type conversion.
  2015-02-10 12:46 [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Yousong Zhou
  2015-02-10 12:46 ` [PATCH 2/4] mips: fix compiler warning on printing 64-bit integer Yousong Zhou
  2015-02-10 12:46 ` [PATCH 3/4] mips: remove unused variable Yousong Zhou
@ 2015-02-10 12:46 ` Yousong Zhou
  2015-02-12  8:10 ` [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Simon Horman
  3 siblings, 0 replies; 5+ messages in thread
From: Yousong Zhou @ 2015-02-10 12:46 UTC (permalink / raw)
  To: kexec; +Cc: Yousong Zhou, horms

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>
---
 kexec/arch/mips/kexec-elf-mips.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
1.7.10.4


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion.
  2015-02-10 12:46 [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Yousong Zhou
                   ` (2 preceding siblings ...)
  2015-02-10 12:46 ` [PATCH 4/4] mips: fix warning about implicit type conversion Yousong Zhou
@ 2015-02-12  8:10 ` Simon Horman
  3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2015-02-12  8:10 UTC (permalink / raw)
  To: Yousong Zhou; +Cc: kexec

On Tue, Feb 10, 2015 at 08:46:11PM +0800, Yousong Zhou wrote:
> This can fix the following error when searching for lzma support and
> while at it also apply the practice to other uses of the same pattern.
> 
> 	checking for lzma_code in -llzma... ./configure: line 4756: ac_fn_c_try_link: command not found

Thanks, I have applied this and the other three patches in the series.

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-12  8:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-10 12:46 [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Yousong Zhou
2015-02-10 12:46 ` [PATCH 2/4] mips: fix compiler warning on printing 64-bit integer Yousong Zhou
2015-02-10 12:46 ` [PATCH 3/4] mips: remove unused variable Yousong Zhou
2015-02-10 12:46 ` [PATCH 4/4] mips: fix warning about implicit type conversion Yousong Zhou
2015-02-12  8:10 ` [PATCH 1/4] configure.ac: apply necessary quotes to result of macro expansion Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).