From patchwork Thu Jun 7 14:05:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Hutchings X-Patchwork-Id: 10452109 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 BFE5960375 for ; Thu, 7 Jun 2018 14:29:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD26229374 for ; Thu, 7 Jun 2018 14:29:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0A162939A; Thu, 7 Jun 2018 14:29:18 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 34B4E29378 for ; Thu, 7 Jun 2018 14:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Subject:Message-ID:Date:To: From:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=f8zfiL8L+M6Puj9O3291XiNElOunvf+w9dcQp42JsbI=; b=Gwla8hfloQ/17W LvySCEOk2LRG36anarvCdbULsinX2AkNKWTmGx3DitNpOjENVpqcxbhFzJF5XSNpn1lDUe/Mjpt7c PM5LUlqBpm6MJLb0ojFL8CZGoIU2Qwt5mnCqE4AavN4Q5fBVZM6rn4lrScJeViiAN4/0q3mRm8xts CFjS1WiFT1joq+a4sEcoSzLDe80f4tx7imhu0/OYAw2XmtcFPocsqTQ2xetNsAMQo9vGIZxKRYnhq T7cN1AuGPSwuW1AyFEdTY80L1lsxxaOpMzwtnPxLdp0rGRRpOwdr6HpOEiIwzfRkawVKErHocUpG7 itKYzoA26uo3cU+5e9Eg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvuT-00052g-G1; Thu, 07 Jun 2018 14:29:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvuO-0004C0-7p; Thu, 07 Jun 2018 14:29:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Subject:Message-ID:Date:CC: To:From:MIME-Version:Content-Transfer-Encoding:Content-Type:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6B2A+22W2fdNT8kb2soobvyoBrzPVtd6bPKQ+tR+VEg=; b=R4fw1n0WJoCI8SdmyZ0M3Cvru3 YQ5cKjq1CYTRPyAajfPKrbbUsENx4PP3zwsTTcIPFhukMGu6T4DuShbc3wI4est3j5XvKRswjZvTK lmS/r3WvsGDQwLYsy99tu3cOfERYKJ52j8nPmlmJ5ajxn/SUbhToWIVroDzND9d23DvwN6ki3bWyk iGX1m8wdrhnvMpUbse8QR0MQx9QgjmD+ATM29gEP8wo5y/2hP1Du2bVjBMdC4yQ7Ca7mGeit0Wx5B L7BHBFxMD7IfeU7us5x9SXvy84cGw8T/0eKQYJhQ/YIDB5VBAeAM/b64O3fdZw6NWIMaHw70J+a3U tAmHubGA==; Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQvbV-0000Qa-QP; Thu, 07 Jun 2018 14:09:32 +0000 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbA-0005hK-7c; Thu, 07 Jun 2018 15:09:08 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb9-000362-0b; Thu, 07 Jun 2018 15:09:07 +0100 Content-Disposition: inline MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 267/410] arm64: do not use print_symbol() In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180607_150929_946695_CDBB6288 X-CRM114-Status: GOOD ( 15.00 ) 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: Petr Mladek , linux-am33-list@redhat.com, linux-ia64@vger.kernel.org, Sergey Senozhatsky , linux-sh@vger.kernel.org, Catalin Marinas , x86@kernel.org, Will Deacon , Steven Rostedt , Sergey Senozhatsky , linux-c6x-dev@linux-c6x.org, akpm@linux-foundation.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org 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 3.16.57-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Sergey Senozhatsky commit 4ef7963843d3243260aa335dfb9cb2fede06aacf upstream. print_symbol() is a very old API that has been obsoleted by %pS format specifier in a normal printk() call. Replace print_symbol() with a direct printk("%pS") call. Link: http://lkml.kernel.org/r/20171211125025.2270-3-sergey.senozhatsky@gmail.com To: Andrew Morton To: Russell King To: Catalin Marinas To: Mark Salter To: Tony Luck To: David Howells To: Yoshinori Sato To: Guan Xuetao To: Borislav Petkov To: Greg Kroah-Hartman To: Thomas Gleixner To: Peter Zijlstra To: Vineet Gupta To: Fengguang Wu Cc: Steven Rostedt Cc: Petr Mladek Cc: LKML Cc: linux-arm-kernel@lists.infradead.org Cc: linux-c6x-dev@linux-c6x.org Cc: linux-ia64@vger.kernel.org Cc: linux-am33-list@redhat.com Cc: linux-sh@vger.kernel.org Cc: linux-edac@vger.kernel.org Cc: x86@kernel.org Cc: linux-snps-arc@lists.infradead.org Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Sergey Senozhatsky [pmladek@suse.com: updated commit message] Signed-off-by: Petr Mladek [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- arch/arm64/kernel/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -198,8 +197,8 @@ void __show_regs(struct pt_regs *regs) } show_regs_print_info(KERN_DEFAULT); - print_symbol("pc : %s\n", regs->pc); - print_symbol("lr : %s\n", lr); + printk("pc : %pS\n", (void *)regs->pc); + printk("lr : %pS\n", (void *)lr); printk("sp : %016llx pstate : %08llx\n", sp, regs->pstate); for (i = top_reg; i >= 0; i--) { printk("x%-2d: %016llx ", i, regs->regs[i]);