[PATCH 6/7] ppc64, cleanup: fix implicit declaration compile warnings
Cédric Le Goater
clg at fr.ibm.com
Fri Apr 18 07:08:39 PDT 2014
../kexec/arch/ppc64/kexec-ppc64.c: In function ‘get_devtree_details’:
../kexec/arch/ppc64/kexec-ppc64.c:414:5: warning: implicit declaration of function ‘reserve’ [-Wimplicit-function-declaration]
reserve(KDUMP_BACKUP_LIMIT, crash_base-KDUMP_BACKUP_LIMIT);
^
../kexec/arch/ppc64/crashdump-ppc64.c: In function ‘load_crashdump_segments’:
../kexec/arch/ppc64/crashdump-ppc64.c:391:2: warning: implicit declaration of function ‘reserve’ [-Wimplicit-function-declaration]
reserve(info->backup_start, sz);
^
Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
kexec/arch/ppc64/crashdump-ppc64.c | 1 +
kexec/arch/ppc64/kexec-ppc64.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c
index c0d575d87be0..71a09dbff17f 100644
--- a/kexec/arch/ppc64/crashdump-ppc64.c
+++ b/kexec/arch/ppc64/crashdump-ppc64.c
@@ -34,6 +34,7 @@
#include "../../crashdump.h"
#include "kexec-ppc64.h"
#include "crashdump-ppc64.h"
+#include "../../fs2dt.h"
static struct crash_elf_info elf_info64 =
{
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c
index 49b291d1e986..f64b833b665b 100644
--- a/kexec/arch/ppc64/kexec-ppc64.c
+++ b/kexec/arch/ppc64/kexec-ppc64.c
@@ -33,6 +33,7 @@
#include "kexec-ppc64.h"
#include "crashdump-ppc64.h"
#include <arch/options.h>
+#include "../../fs2dt.h"
static struct memory_range *exclude_range = NULL;
static struct memory_range *memory_range = NULL;
--
1.7.10.4
More information about the kexec
mailing list