makedumpfile: Add vmap_area_list definition for ppc/ppc64.

Build on ppc/ppc64 failed after makedumpfile-1.5.4 is pulled, since the
variable vmap_area_list is not defined. Back port below commit from
upstream to add it.

commit 150b58eb299066c65ef7713a93effc35c00be03a
Author: Baoquan He <bhe@redhat.com>
Date:   Mon Jul 15 20:37:14 2013 +0800

    [PATCH] Add vmap_area_list definition for ppc/ppc64.

    vmap_area_list is added to get vmalloc_start for ppc/ppc64, but its
    definition is missing, now add them.

    Signed-off-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
Baoquan He 2013-07-18 16:01:11 +08:00
parent 85292672fc
commit 5de822d48d
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
From 150b58eb299066c65ef7713a93effc35c00be03a Mon Sep 17 00:00:00 2001
Message-Id: <150b58eb299066c65ef7713a93effc35c00be03a.1374133991.git.bhe@redhat.com>
From: Baoquan He <bhe@redhat.com>
Date: Mon, 15 Jul 2013 20:37:14 +0800
Subject: [PATCH] [PATCH] Add vmap_area_list definition for ppc/ppc64.
vmap_area_list is added to get vmalloc_start for ppc/ppc64, but its
definition is missing, now add them.
Signed-off-by: Baoquan He <bhe@redhat.com>
---
makedumpfile-1.5.4/arch/ppc.c | 2 +-
makedumpfile-1.5.4/arch/ppc64.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/makedumpfile-1.5.4/arch/ppc.c b/makedumpfile-1.5.4/arch/ppc.c
index a9b4812..a3e1a12 100644
--- a/makedumpfile-1.5.4/arch/ppc.c
+++ b/makedumpfile-1.5.4/arch/ppc.c
@@ -28,7 +28,7 @@
int
get_machdep_info_ppc(void)
{
- unsigned long vmlist, vmalloc_start;
+ unsigned long vmlist, vmap_area_list, vmalloc_start;
info->section_size_bits = _SECTION_SIZE_BITS;
info->max_physmem_bits = _MAX_PHYSMEM_BITS;
diff --git a/makedumpfile-1.5.4/arch/ppc64.c b/makedumpfile-1.5.4/arch/ppc64.c
index c229ede..85144f6 100644
--- a/makedumpfile-1.5.4/arch/ppc64.c
+++ b/makedumpfile-1.5.4/arch/ppc64.c
@@ -49,7 +49,7 @@ set_ppc64_max_physmem_bits(void)
int
get_machdep_info_ppc64(void)
{
- unsigned long vmlist, vmalloc_start;
+ unsigned long vmlist, vmap_area_list, vmalloc_start;
info->section_size_bits = _SECTION_SIZE_BITS;
if (!set_ppc64_max_physmem_bits()) {
--
1.7.1

View File

@ -63,6 +63,7 @@ Obsoletes: diskdumputils netdump
#
# Patches 301 through 400 are meant for ppc64 kexec-tools enablement
#
Patch301: kexec-tools-2.0.4-makedumpfile-Add-vmap_area_list-definition-for-ppc-ppc64.patch
#
# Patches 401 through 500 are meant for s390 kexec-tools enablement
@ -104,6 +105,7 @@ tar -z -x -v -f %{SOURCE9}
tar -z -x -v -f %{SOURCE19}
%patch301 -p1
%patch601 -p1
%patch604 -p1