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