From patchwork Tue Jan 3 17:21:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9495265 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 3E173606A7 for ; Tue, 3 Jan 2017 17:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 446D327BFF for ; Tue, 3 Jan 2017 17:25:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36C7D27C2D; Tue, 3 Jan 2017 17:25:32 +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 CA30727BFF for ; Tue, 3 Jan 2017 17:25:31 +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 1cOSof-0004ul-8i; Tue, 03 Jan 2017 17:24:05 +0000 Received: from mail-qt0-f170.google.com ([209.85.216.170]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cOSnS-0004Hb-Ip for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2017 17:22:52 +0000 Received: by mail-qt0-f170.google.com with SMTP id d45so246389615qta.1 for ; Tue, 03 Jan 2017 09:22:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Oh9x/clsvAmMIUpYqFhaDyrZHiifPC4c4TLUtHi4PlM=; b=hs7VaXEjnfAUQGwU16GyXWcZ0N2XQU6fi4lM4DeKaCoL3TjgHwkeF9tRqvOQbujDpb 4hYD5CYaLw5bocUPoTxCjNLAUJtQYcHWoZOmdhxxPhXXF2ZXP/MRtw5yIMG1Saay9WuO cIJK/V5NIKzb5v8d2Pp1YQ2jKNFhr3nSIhzblHrHAhlLrqSLJFXCxkGRonVtRAlNOLNE IVmKrwGcoDHlZiDQgWfU+LGMVTe8lQOBnw5ehBXR1rvDNIhOe27LA0REa6TfoD8LkB0X epIsHHrf2DYpuUh9xOJOyXOfdt2FJCK+uyyKNd5A6tu4xi8UC/Rv7MiJNavnv1CSWGCZ pKBg== X-Gm-Message-State: AIkVDXLABdq8lNyga66FHjorY+4KZ9Z0GoKgSGaVx69KLdxKMvvHAIEER8Q60G2Jr5w3xrY/ X-Received: by 10.237.59.68 with SMTP id q4mr58173125qte.191.1483464149243; Tue, 03 Jan 2017 09:22:29 -0800 (PST) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::6b06]) by smtp.gmail.com with ESMTPSA id 53sm44034313qtm.5.2017.01.03.09.22.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 09:22:27 -0800 (PST) From: Laura Abbott To: Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas , Eric Biederman Subject: [PATCHv6 08/11] kexec: Switch to __pa_symbol Date: Tue, 3 Jan 2017 09:21:50 -0800 Message-Id: <1483464113-1587-9-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1483464113-1587-1-git-send-email-labbott@redhat.com> References: <1483464113-1587-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170103_092250_814943_F7B8B129 X-CRM114-Status: GOOD ( 11.20 ) 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, kexec@lists.infradead.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 the correct api to get the physical address of kernel symbols. Switch to it to allow for better debug checking. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Acked-by: "Eric W. Biederman" Signed-off-by: Laura Abbott --- kernel/kexec_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index 5617cc4..a01974e 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c @@ -1399,7 +1399,7 @@ void __weak arch_crash_save_vmcoreinfo(void) phys_addr_t __weak paddr_vmcoreinfo_note(void) { - return __pa((unsigned long)(char *)&vmcoreinfo_note); + return __pa_symbol((unsigned long)(char *)&vmcoreinfo_note); } static int __init crash_save_vmcoreinfo_init(void)