Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1216883

[PATCH 2/5 v2] s390/setup: use memblock_first_region_size helper

From Alexander Kuleshov <kuleshovmail@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/5 v2] s390/setup: use memblock_first_region_size helper
Date 2015-09-01 16:30 +0200
Message-ID <q3UJs-Hp-27@gated-at.bofh.it> (permalink)
References <q3UJs-Hp-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The 0a11142e commit (mm/memblock: Introduce memblock_first_region_size()
helper) introduced memblock_first_region_size() helper for the getting
size of the first memblock region. Let's use it instead of directly access
to structure.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 arch/s390/kernel/setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c
index ca070d2..69c3859 100644
--- a/arch/s390/kernel/setup.c
+++ b/arch/s390/kernel/setup.c
@@ -563,7 +563,7 @@ static void __init reserve_crashkernel(void)
 	if (rc || crash_size == 0)
 		return;
 
-	if (memblock.memory.regions[0].size < crash_size) {
+	if (memblock_first_region_size() < crash_size) {
 		pr_info("crashkernel reservation failed: %s\n",
 			"first memory chunk must be at least crashkernel size");
 		return;
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5 v2] mm/memblock: Introduce memblock_first_region_size() helper Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-09-01 16:30 +0200
  [PATCH 1/5 v2] mm/memblock: Introduce memblock_first_region_size() helper Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-09-01 16:30 +0200
  [PATCH 2/5 v2] s390/setup: use memblock_first_region_size helper Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-09-01 16:30 +0200
  [PATCH 5/5 v2] arm/mmu: Use memblock_first_region_size() helper Alexander Kuleshov <kuleshovmail@gmail.com> - 2015-09-01 16:40 +0200

csiph-web