Blame SOURCES/kexec-tools-2.0.15-makedumpfile-ppc64-set-page_offset-in-get_versiondep.patch

1d9674
From d0f59cdf7f30e4c2e533004c32c1f1979ae86371 Mon Sep 17 00:00:00 2001
1d9674
From: Pingfan Liu <piliu@redhat.com>
1d9674
Date: Mon, 21 Aug 2017 12:24:13 +0900
1d9674
Subject: [PATCH 1/2] [PATCH v2 1/2] ppc64: set page_offset in
1d9674
 get_versiondep_info_ppc64()
1d9674
1d9674
Envalue info->page_offset in get_versiondep_info_ppc64() is a little
1d9674
misleading. But since show_mem_usage->get_page_offset->get_versiondep_info
1d9674
needs to get this info, so initialize it in get_versiondep_info_ppc64().
1d9674
1d9674
Signed-off-by: Pingfan Liu <piliu@redhat.com>
1d9674
---
1d9674
 arch/ppc64.c | 1 +
1d9674
 1 file changed, 1 insertion(+)
1d9674
1d9674
diff --git a/makedumpfile-1.6.2/arch/ppc64.c b/makedumpfile-1.6.2/arch/ppc64.c
1d9674
index 6aeab7e..3fd6002 100644
1d9674
--- a/makedumpfile-1.6.2/arch/ppc64.c
1d9674
+++ b/makedumpfile-1.6.2/arch/ppc64.c
1d9674
@@ -576,6 +576,7 @@ get_versiondep_info_ppc64()
1d9674
 		ERRMSG("Can't initialize for vmalloc translation\n");
1d9674
 		return FALSE;
1d9674
 	}
1d9674
+	info->page_offset = __PAGE_OFFSET;
1d9674
 
1d9674
 	return TRUE;
1d9674
 }
1d9674
-- 
1d9674
2.7.4
1d9674