From patchwork Tue Dec 6 23:50:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9463485 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 2DE9F6022E for ; Tue, 6 Dec 2016 23:55:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2008C27D85 for ; Tue, 6 Dec 2016 23:55:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14A64284D4; Tue, 6 Dec 2016 23:55:57 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 A51E927D85 for ; Tue, 6 Dec 2016 23:55:56 +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 1cEPZ1-000631-Pz; Tue, 06 Dec 2016 23:54:23 +0000 Received: from mail-qt0-f180.google.com ([209.85.216.180]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEPWY-0003zn-PT for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 23:51:53 +0000 Received: by mail-qt0-f180.google.com with SMTP id c47so362894465qtc.2 for ; Tue, 06 Dec 2016 15:51:30 -0800 (PST) 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=Y69x6pZCDngW5Fc5FurE3tAjNGGB7n2v5NiNA+bK2Us=; b=iBtgg/Ii9oczuAfu6j82W8gw8+CwnUFx7nzTTbD1GKideGy0tsLbssG3MXh+IxZSWg Arm8dPdyllX/Q8l6bUecYjpMNkXzxiL8uB5fDTL/3faboSLtdoO26mk1rmy4USe0Vkk4 4B2Jyis0ieVLq2VpIxpL7vvf8teZegBO/hPEI5ERFqbxEpmZdKUpzPgnAiZ/n/YS+lGD a3KioDQdLoC374d60jgrQ3fuISdDQmSufel0VkR9KZRBYViRcffo3gdX/VeHbaFyLCP7 lnSEXMtMvJi3U8SubFdMpR0ukYLp7ln3/vWo+F6HbAgX/yI+IJs+ynNTFBITDcnUUTIG b+XA== X-Gm-Message-State: AKaTC00sjP8T6pMoSOqyzlFMN9ylIIrqWYemunT8gOksAeEG4Ro5jQkpzhOIXrRwXhuDDwMT X-Received: by 10.237.60.97 with SMTP id u30mr57859391qte.233.1481068289377; Tue, 06 Dec 2016 15:51:29 -0800 (PST) Received: from labbott-redhat-machine.redhat.com ([2601:602:9800:177f::df9b]) by smtp.gmail.com with ESMTPSA id o190sm2739212qke.5.2016.12.06.15.51.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 15:51:28 -0800 (PST) From: Laura Abbott To: Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas , Eric Biederman Subject: [PATCHv5 08/11] kexec: Switch to __pa_symbol Date: Tue, 6 Dec 2016 15:50:54 -0800 Message-Id: <1481068257-6367-9-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481068257-6367-1-git-send-email-labbott@redhat.com> References: <1481068257-6367-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_155151_130407_84632386 X-CRM114-Status: GOOD ( 11.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, 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. Acked-by: "Eric W. Biederman" Signed-off-by: Laura Abbott --- v5: No changes, just acks --- 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 5616755..e1b625e 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c @@ -1397,7 +1397,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)