[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1441117718-30763-1-git-send-email-kuleshovmail@gmail.com>
Date: Tue, 1 Sep 2015 20:28:38 +0600
From: Alexander Kuleshov <kuleshovmail@...il.com>
To: Guan Xuetao <gxt@...c.pku.edu.cn>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org,
Alexander Kuleshov <kuleshovmail@...il.com>
Subject: [PATCH 4/5 v2] unicore32/mmu: use memblock_first_region_size() helper
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@...il.com>
---
arch/unicore32/mm/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/unicore32/mm/mmu.c b/arch/unicore32/mm/mmu.c
index 4f5a532..8cd2d9d 100644
--- a/arch/unicore32/mm/mmu.c
+++ b/arch/unicore32/mm/mmu.c
@@ -314,7 +314,7 @@ static inline void prepare_page_table(void)
/*
* Find the end of the first block of lowmem.
*/
- end = memblock.memory.regions[0].base + memblock.memory.regions[0].size;
+ end = memblock.memory.regions[0].base + memblock_first_region_size();
if (end >= lowmem_limit)
end = lowmem_limit;
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists