[PATCH] makedumpfile: Compile fix

Michael Holzheu holzheu at linux.vnet.ibm.com
Thu Jan 12 10:12:34 EST 2012

From: Michael Holzheu <holzheu at linux.vnet.ibm.com>

When compiling makedumpfile git head or 1.4.1 on s390x, I get the following
gcc error:

 -D_LARGEFILE64_SOURCE -DVERSION='"1.4.1"' -DRELEASE_DATE='"6 January 2012"'
 -D__s390__  print_info.o dwarf_info.o elf_info.o erase_info.o sadump_info.o
 arch/arm.o arch/x86.o arch/x86_64.o arch/ia64.o arch/ppc64.o arch/s390x.o -o
 makedumpfile makedumpfile.c -static -ldw -lbz2 -lebl -ldl -lelf -lz
 In file included from makedumpfile.c:21:0:
 sadump_info.h:86:1: error: expected identifier or '(' before '{' token
 sadump_info.h:85:19: warning: 'sadump_num_online_cpus' used but never defined

The attached patch fixes this problem.

Signed-off-by: Michael Holzheu <holzheu at linux.vnet.ibm.com>
 sadump_info.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sadump_info.h
+++ b/sadump_info.h
@@ -82,7 +82,7 @@ static inline int sadump_initialize_bitm
 	return FALSE;
-static inline int sadump_num_online_cpus(void);
+static inline int sadump_num_online_cpus(void)
 	return 0;

More information about the kexec mailing list