From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754035AbbIAOa3 (ORCPT ); Tue, 1 Sep 2015 10:30:29 -0400 Received: from mail-la0-f46.google.com ([209.85.215.46]:33884 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753886AbbIAOa1 (ORCPT ); Tue, 1 Sep 2015 10:30:27 -0400 From: Alexander Kuleshov To: Russell King , Catalin Marinas , Will Deacon , Marek Szyprowski , Arnd Bergmann Cc: Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexander Kuleshov Subject: [PATCH 5/5 v2] arm/mmu: Use memblock_first_region_size() helper Date: Tue, 1 Sep 2015 20:29:48 +0600 Message-Id: <1441117788-30822-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1441117527-30466-1-git-send-email-kuleshovmail@gmail.com> References: <1441117527-30466-1-git-send-email-kuleshovmail@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 870838a..fc60882 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1176,7 +1176,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 >= arm_lowmem_limit) end = arm_lowmem_limit; -- 2.5.0