From patchwork Wed Nov 2 21:00:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9409883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 138AB60585 for ; Wed, 2 Nov 2016 21:04:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 037BA297DD for ; Wed, 2 Nov 2016 21:04:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC39F2A5C0; Wed, 2 Nov 2016 21:04:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8C820297DD for ; Wed, 2 Nov 2016 21:04:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c22gr-0000sH-IN; Wed, 02 Nov 2016 21:03:21 +0000 Received: from mail-qt0-f175.google.com ([209.85.216.175]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c22f5-0007rR-7m for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2016 21:01:34 +0000 Received: by mail-qt0-f175.google.com with SMTP id n6so16745891qtd.1 for ; Wed, 02 Nov 2016 14:01:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tR3mfQ08r/LLbsBLwV7/zGkk/Xf9qEFYsLpPFeZ+BjI=; b=Uu23RoC7Ny9nc0ubs727kNrwppK23NWMZbSqRRW4Ws9qLSvhs3tTgGA2YulhD7O7Y/ /6PlBE+o05KyD0H5+bK2oyCX/dzdDm3yB7GxbMMnTPtu7UNPrfsP26vQnK5pRpGNKE0+ xnQInWKKP5l3SV/wT7UvIf45zoZMdkQJjjPLtCXOQ90dYdoDfWS9tvV12D1n23p04SPW 27EdjVkVzvBiUmsPJuk7rvAJKW++HdODe6aD0b6WiMX7gkOe2pZ6xqmI25RJo97nx/at CYTKCE7YtoHXfgXy1iMrQ5Y2rnU+Wq/SvgGi/gaOMwycqwKb1OjEfRdn3gU//BGwxvlu yhOQ== X-Gm-Message-State: ABUngveD265ZGg7/qnY4Kbomo+ZCg+1cTd1nRcWY2vp3GGUqLmzS16Qxmgd52abvvZhcx2NR X-Received: by 10.200.53.69 with SMTP id z5mr4975142qtb.64.1478120469915; Wed, 02 Nov 2016 14:01:09 -0700 (PDT) Received: from X1-Carbon.redhat.com ([198.233.217.214]) by smtp.gmail.com with ESMTPSA id a54sm2193376qta.49.2016.11.02.14.01.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Nov 2016 14:01:09 -0700 (PDT) From: Laura Abbott To: Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas Subject: [PATCHv2 5/6] arm64: Use __pa_symbol for _end Date: Wed, 2 Nov 2016 15:00:53 -0600 Message-Id: <20161102210054.16621-6-labbott@redhat.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161102210054.16621-1-labbott@redhat.com> References: <20161102210054.16621-1-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161102_140131_596030_934C5C8A X-CRM114-Status: GOOD ( 12.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ingo Molnar , "H. Peter Anvin" , Joonsoo Kim , Thomas Gleixner , Laura Abbott , Andrew Morton , linux-arm-kernel@lists.infradead.org, Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP __pa_symbol is technically the marco that should be used for kernel symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL. Signed-off-by: Laura Abbott --- arch/arm64/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 212c4d1..3236eb0 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -209,8 +209,8 @@ void __init arm64_memblock_init(void) * linear mapping. Take care not to clip the kernel which may be * high in memory. */ - memblock_remove(max_t(u64, memstart_addr + linear_region_size, __pa(_end)), - ULLONG_MAX); + memblock_remove(max_t(u64, memstart_addr + linear_region_size, + __pa_symbol(_end)), ULLONG_MAX); if (memstart_addr + linear_region_size < memblock_end_of_DRAM()) { /* ensure that memstart_addr remains sufficiently aligned */ memstart_addr = round_up(memblock_end_of_DRAM() - linear_region_size,