[PATCH 6/7] ppc64, cleanup: fix implicit declaration compile warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



../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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux