From patchwork Tue Jan 3 17:21:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9495263 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 1B687606A7 for ; Tue, 3 Jan 2017 17:25:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2143227BFF for ; Tue, 3 Jan 2017 17:25:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10DD627C2D; Tue, 3 Jan 2017 17:25:05 +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 A92F927BFF for ; Tue, 3 Jan 2017 17:25:04 +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 1cOSoI-0004ji-Vf; Tue, 03 Jan 2017 17:23:42 +0000 Received: from mail-qt0-f181.google.com ([209.85.216.181]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cOSnN-0004G0-44 for linux-arm-kernel@lists.infradead.org; Tue, 03 Jan 2017 17:22:46 +0000 Received: by mail-qt0-f181.google.com with SMTP id k15so229565026qtg.3 for ; Tue, 03 Jan 2017 09:22:26 -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=ZJJ/NcIpYUdty1/77BSwTFuBmpwT23EGQLBI1tJM3tgqa8NWR8d9rUzN46zPNPhkUv dUnoIpKcOSK1BXb6Q7HBcV144pyZjDP4DwvaCczZCNfhhAOnkQ0JtRhztF5GRKWfmeTO bSt3uY/aCt8/YrL1V0b7hGcIwGl13p/GcaLlAAiUE47anyA1s+ezK7VBPyYgBQhrknKh yXQ5Pxie/nY/wILMNwNhZl1gRSnCKEip/93mEFiUXfzXTA2X9pSmHtAl5GIaWI9LjqaL bWaVZDT6dYJpAGQQ2FwmOdsmJoDcoEizz2cZgBVlTneJ5s7xcMDfHV16sPGxgnY8q6Nb n7aA== X-Gm-Message-State: AIkVDXJBauab42oeB65koJlySDH6yka/aIb5ByBOf46O5/uksHLBoF8zBbkbccoibJbm64Qf X-Received: by 10.200.43.245 with SMTP id n50mr57354729qtn.224.1483464145747; Tue, 03 Jan 2017 09:22:25 -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.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jan 2017 09:22:24 -0800 (PST) From: Laura Abbott To: Mark Rutland , Ard Biesheuvel , Will Deacon , Catalin Marinas , Lorenzo Pieralisi Subject: [PATCHv6 07/11] drivers: firmware: psci: Use __pa_symbol for kernel symbol Date: Tue, 3 Jan 2017 09:21:49 -0800 Message-Id: <1483464113-1587-8-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_092245_381178_79F4FAC1 X-CRM114-Status: GOOD ( 11.06 ) 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: 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)