From patchwork Tue Jan 10 21:35:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9508571 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 54ABA60231 for ; Tue, 10 Jan 2017 21:37:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29F4A2621F for ; Tue, 10 Jan 2017 21:37:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CC0B285C7; Tue, 10 Jan 2017 21:37:42 +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 B319E285C3 for ; Tue, 10 Jan 2017 21:37:41 +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 1cR46t-0004Nl-HL; Tue, 10 Jan 2017 21:37:39 +0000 Received: from mail-qk0-f176.google.com ([209.85.220.176]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cR45y-0002Or-87 for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2017 21:36:45 +0000 Received: by mail-qk0-f176.google.com with SMTP id s140so166511951qke.0 for ; Tue, 10 Jan 2017 13:36:21 -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=Rl8wZurv+yfHSRYr5Ww7QZ2Lx1Y3Z+/g9u2PBC6JaQY=; b=IXBR6n2rXrqLMAY/p/RxSUa90Y/UarujF3PdmGTw95ix2j9zaV5tVMu+PkyPXyhEfS M+pcQGJWs9vqSS38rkfELFvLuxLq4T0Z15qYpEOgxe/JwL5MV/8SIf2XDROuhBhEd1p5 J8lmbb18zsW7TKFS5tbwEZu2lWqKiEHqVvOajrLCiwUJNTP1B4pJxnrvWycDhVZe4ndt 7WZgEKJ+nVPJ61dm9buxGw4HNCayybtqEOZjkjcJI2D+FBwf3fmAqXN2RRB1tVP9XG74 SZpMspGMc5lYb1d4B23cNzn06o8sVYo7/Ykb+KST1RJFUiqw8TwsPAIW7hAk3wIm1NAp y26Q== X-Gm-Message-State: AIkVDXKbhBDCBmF0OFpBu+jzyBFIfE6Ql0srm2YEhh0pmoOFO7WO0ibSE70LQ/wQ41+W1tm3 X-Received: by 10.233.237.13 with SMTP id c13mr5623257qkg.227.1484084181042; Tue, 10 Jan 2017 13:36:21 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 13:36:19 -0800 (PST) From: Laura Abbott To: Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas , Lorenzo Pieralisi , Florian Fainelli Subject: [PATCHv7 07/11] drivers: firmware: psci: Use __pa_symbol for kernel symbol Date: Tue, 10 Jan 2017 13:35:46 -0800 Message-Id: <1484084150-1523-8-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_133642_725233_D766DF84 X-CRM114-Status: GOOD ( 11.63 ) 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: Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Ingo Molnar , linux-arm-kernel@lists.infradead.org, "H. Peter Anvin" , Joonsoo Kim , Thomas Gleixner , Laura Abbott , Andrew Morton , Christoffer Dall , 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 macro that should be used for kernel symbols. Switch to this as a pre-requisite for DEBUG_VIRTUAL which will do bounds checking. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- drivers/firmware/psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index 6c60a50..66a8793 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -383,7 +383,7 @@ static int psci_suspend_finisher(unsigned long index) u32 *state = __this_cpu_read(psci_power_state); return psci_ops.cpu_suspend(state[index - 1], - virt_to_phys(cpu_resume)); + __pa_symbol(cpu_resume)); } int psci_cpu_suspend_enter(unsigned long index)