From patchwork Tue Jan 10 21:35:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9508583 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 BB729606E1 for ; Tue, 10 Jan 2017 21:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB6EE285C7 for ; Tue, 10 Jan 2017 21:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F36A285CA; Tue, 10 Jan 2017 21:42:38 +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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 43123285C7 for ; Tue, 10 Jan 2017 21:42:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cR4Be-0007uQ-VS; Tue, 10 Jan 2017 21:42:34 +0000 Received: from mail-qt0-f178.google.com ([209.85.216.178]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cR45o-0002I9-1B for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2017 21:36:38 +0000 Received: by mail-qt0-f178.google.com with SMTP id l7so129475478qtd.1 for ; Tue, 10 Jan 2017 13:36:11 -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=NfmnPnhqi4+NPPA8b6pzc8QhujEWoLfXrPwn+jgt3zC694PlCjtdla2EOiwTkaRNH2 5pl8vHcCc0FD0w6IsFouLNqz5E/wmp8mV4WGa7bQIZBvopwWY2Di1IKESkjAr1N9VIyg XoogvInQWi9kqH8chjIfGKO6qa4Bigv5jKG0xr625Ukc4Wg7nrfvamS4HWduzRCnc01o +4B56IX+ytSk0z8waSjKgyCu30GC6b7xq4K9db9LBlys1p6+XhD+rYQmuj8NkG16up5y RnyxOl31MfzlyE0m1n0AM+qyW5YibKiEsWFcJxIWy+awdvsta8xBCSFoQK06AUf4EML+ DVSg== X-Gm-Message-State: AIkVDXILQq1CKnblBLLJH98O8+9hnwFxYEhGfzLJqy0+jfpmSdxOs14qILOq4HEJLDY1RF3Y X-Received: by 10.237.43.167 with SMTP id e36mr4709376qtd.169.1484084170705; Tue, 10 Jan 2017 13:36:10 -0800 (PST) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::6b06]) by smtp.gmail.com with ESMTPSA id n188sm2406857qkc.30.2017.01.10.13.36.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 13:36:09 -0800 (PST) From: Laura Abbott To: Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas , Eric Biederman , Florian Fainelli Subject: [PATCHv7 04/11] kexec: Switch to __pa_symbol Date: Tue, 10 Jan 2017 13:35:43 -0800 Message-Id: <1484084150-1523-5-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484084150-1523-1-git-send-email-labbott@redhat.com> References: <1484084150-1523-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170110_133632_454334_A309925E X-CRM114-Status: GOOD ( 11.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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)