Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2266467imm; Thu, 7 Jun 2018 07:57:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ3enRjObB4AnlfpHdRdVtYbMD+MUjb8qs5y40rONQwpygzwK1TAFKg+4TEsYAztJrzp7IF X-Received: by 2002:a63:9543:: with SMTP id t3-v6mr1831005pgn.77.1528383474490; Thu, 07 Jun 2018 07:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528383474; cv=none; d=google.com; s=arc-20160816; b=cPfoVjS4k/uQh2Sv8PuCylaXwSf6DBH+2HcfaJGTXhhEBuwSYqUfk2ukbgxMkjmum6 zdSgn1y/jND2D3swjs45OR0Oeu7IjF/xZ2XtsjyEcV8FwOyBaQCApeKJgTZRz6cT7IOk upCs0FqIbuJrSferIiRbFSoOqdq6C8EHFUk5tl8uXMra9JtZNHVdypgKg87BSBiPVK+d mBz5tu5U1DyQxl5W6kQNz81W3t/I6FdfkHETQWSZgi2C/XUgLtHzz8h/0VpZo+2b90aQ 4x1L5+ZwDiJk7vaCnbyRYZ3masMWJmlhnE/33y+5pqtpgdw+73TsHhlZDFSNuEqCOecH FN4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=6B2A+22W2fdNT8kb2soobvyoBrzPVtd6bPKQ+tR+VEg=; b=GdY9lnRvGmI0MUfJpcxtLNJt7vuLjQGC6pyQDaeoFLD0m4mQlTeBLZ8SlUZrhpwqiM h3H+cudRA1FhUuK73K8rCmwqhbfy/T8RAJ2bmBlZLRS1ICievDxrzmL2JaIcIWI9ZQqE Ds+05L/STVAh5fjDqXyYwXVlxbbKO3iZEuVZkUfthbx2x8Xla3kM1hkjvsxxWfgW+3Y/ bdk3jZrRjMTpQV6GN0+ScYT3sSp6NYzGu+rokoGjTyOzwGZsQJxFuiH9+y0/XIxWDcaG Ph3uEdGZZZ3gQQ9SWbznA6f1k/t2ZhvX+wb0aQL1G5gmPoIwkDuTEt7aZ/xZmnKy8KK2 MXTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12-v6si44983484pgs.560.2018.06.07.07.57.40; Thu, 07 Jun 2018 07:57:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935507AbeFGOzx (ORCPT + 99 others); Thu, 7 Jun 2018 10:55:53 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41077 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935481AbeFGOzr (ORCPT ); Thu, 7 Jun 2018 10:55:47 -0400 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-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Sergey Senozhatsky" , linux-edac@vger.kernel.org, "Petr Mladek" , linux-sh@vger.kernel.org, "Will Deacon" , linux-snps-arc@lists.infradead.org, "Sergey Senozhatsky" , linux-c6x-dev@linux-c6x.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, "Catalin Marinas" , "Steven Rostedt" , linux-am33-list@redhat.com 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]);