Message ID | 20171211125025.2270-7-sergey.senozhatsky@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 E903C602B3 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Dec 2017 12:53:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD0A429587 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Dec 2017 12:53:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B100A29589; Mon, 11 Dec 2017 12:53:45 +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, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 5C00C29587 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Dec 2017 12:53:44 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=aekYnWJVwOmGgzVocsAc3h7sCh8DGfslz8dp1f/yevs=; b=FauY+Z9rBjEtdTSVNotNmpIlsW jM4CNG2loHMgdF8fYga6WrSInvwetixMZXolORxXC4oacyRs7D+PGjQRQrYPOL6JVDMBrAhqe3Dem HR7Jlz/C64ce9vfmkWrQ7JaLWbMde9AL2fH5a7HAaF7nFujxonLyPoNsnxnJGvTfJ0IzYtSe+Jfud 59xmxTMqsQE3N7R8Xy00smkKZQ3MzWaWcp6tz7iPRP4lH/rNNC61z3+W2lX1XzAw7TRsS5JHxOSXc UNuoNrLHeK1l2L8rA9BZKbh2nP5Zm09Zzx3tMbpd/veoAeEtTeL3odiXAgu1+1He0lfMKTZzgpqQv 34FrMI8Q==; 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 1eONaY-0000y4-Jb; Mon, 11 Dec 2017 12:53:42 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZH-0008Rw-9N; Mon, 11 Dec 2017 12:52:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KrWSHlOYopSeKywswoL6bmz5Brm50fKGfd3eB+CdwVY=; b=kGphvljMbrLHQtLzVZEqn1TAv 2qdTDycQVyCiRRoAKDX+i2BEkuMH7l6RAQ7WmghF09yu3PEH4+BuFbCjYm2DDeV2y1nZYnw4oqK5C 7ovJhqJ2NLW7b2l8J1dkuMLjkjVbSapUudRdw8LOvh8d59dn4+hvx7YMNpt5qtshYMHd+/WzmA2Vn 6fySbCNvwX1ElIw5hVlRJrQauRIHuiymM96BBCjuTfT6Ph3fdhyCfSjIvjlNzPwmM7G3cF7aHCfkh S+mEB4WtZX/++eXmkZv8iC6evCAOWwpZ05n17SKybLjU8YxNDQ4Ex+Sf9vuyTyzFiLb9xwIH1vfAJ YdFbWGMoQ==; Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZC-0007xg-Lr; Mon, 11 Dec 2017 12:52:21 +0000 Received: by mail-pg0-x241.google.com with SMTP id m25so10842945pgv.12; Mon, 11 Dec 2017 04:51:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KrWSHlOYopSeKywswoL6bmz5Brm50fKGfd3eB+CdwVY=; b=DBHWNDoZOUB1d7kIWc0AFazro9/1nGadRXwfcP5MAkABrWccc01oHeJM0tDo3NC4EQ KxvyBeByJDwyjM3r6Un2oa9yAN6dgbESujgGXxtvWqxZiOOYp4Djkne8cNScBKK4e7az ufYOgI0D4xP+wkbomflGLMoph9yDd99bBGus1yJ/128PqNsbVuz+Gs1+tDkaMC8NctiP KQkFBjf4QnhpTti+pB7D4065+qdx2R/LoFSXAYqCgygE8mnlkPJncx8FYEhB2UsfrtVF SipbcZFLrAirDboCqPPf4rPGo5azTTm8hrrGHBGBoeu1QKkY7bWzOWdhHCwZh3Y7gdSg XHYQ== 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=KrWSHlOYopSeKywswoL6bmz5Brm50fKGfd3eB+CdwVY=; b=N9XkbEALMd8l/R+Vn31b5hOc/dgKir/nnLasoJpHijMh5XkHzfqPrf9ezPh6g1Vzwg MfDOX1jD9qenT+gNTJFN9jlfdSyeGthvnKXs1dfra+f1oReizFS/MLf+vIDlGbPGeVF0 qJv0iiQQqlonAmKUxYpS8Xl2Z5KnjCVsZdtjEXay9vWSk/rmuCXq60oX1h29VxZcqfPw uRqoCzT4LJmapiIAHHdMjij9J+yMrHxZj9VwJUsTF+Fx1ZCLg4KDcs+CTV3h7kRg2jwG q71jgsppR62oq4e9P+B0VuAF+JfNUjA5HmBS8v1uYGrMeZ+dwYuo4LdR3ZSU1Dq7lh+2 n/oQ== X-Gm-Message-State: AKGB3mKmiHHq3Lr7ohg6gTWyrSW2Vo8ZorIOkHWIMMV3uNOn0zfbxbtw 6TABk4nH3SWPdrMD+XPHF9w= X-Google-Smtp-Source: ACJfBov5UBStqay+snSsT449dOQq2nrRvo6YYBFabYTCDwfzmR4cRpdoNg6eY+50fjJE2VnIwUZFCA== X-Received: by 10.98.21.17 with SMTP id 17mr300026pfv.120.1512996715320; Mon, 11 Dec 2017 04:51:55 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.51.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:51:54 -0800 (PST) From: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> X-Google-Original-From: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> To: Andrew Morton <akpm@linux-foundation.org>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Mark Salter <msalter@redhat.com>, Tony Luck <tony.luck@intel.com>, David Howells <dhowells@redhat.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Guan Xuetao <gxt@mprc.pku.edu.cn>, Borislav Petkov <bp@alien8.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Thomas Gleixner <tglx@linutronix.de>, Peter Zijlstra <peterz@infradead.org>, Vineet Gupta <vgupta@synopsys.com>, Fengguang Wu <fengguang.wu@intel.com> Subject: [PATCH 06/13] sh: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:18 +0900 Message-Id: <20171211125025.2270-7-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171211125025.2270-1-sergey.senozhatsky@gmail.com> References: <20171211125025.2270-1-sergey.senozhatsky@gmail.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Petr Mladek <pmladek@suse.com>, linux-am33-list@redhat.com, linux-ia64@vger.kernel.org, linux-c6x-dev@linux-c6x.org, linux-sh@vger.kernel.org, x86@kernel.org, Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>, LKML <linux-kernel@vger.kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Sergey Senozhatsky <sergey.senozhatsky@gmail.com>, Rich Felker <dalias@libc.org>, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/sh/kernel/process_32.c b/arch/sh/kernel/process_32.c index 2c7bdf8cb934..5c88e7cb9c18 100644 --- a/arch/sh/kernel/process_32.c +++ b/arch/sh/kernel/process_32.c @@ -20,7 +20,6 @@ #include <linux/sched/task_stack.h> #include <linux/slab.h> #include <linux/elfcore.h> -#include <linux/kallsyms.h> #include <linux/fs.h> #include <linux/ftrace.h> #include <linux/hw_breakpoint.h> @@ -37,8 +36,8 @@ void show_regs(struct pt_regs * regs) printk("\n"); show_regs_print_info(KERN_DEFAULT); - print_symbol("PC is at %s\n", instruction_pointer(regs)); - print_symbol("PR is at %s\n", regs->pr); + printk("PC is at %pS\n", instruction_pointer(regs)); + printk("PR is at %pS\n", (void *)regs->pr); printk("PC : %08lx SP : %08lx SR : %08lx ", regs->pc, regs->regs[15], regs->sr);
print_symbol() uses extra stack space to sprintf() symbol information and then to feed that buffer to printk() char buffer[KSYM_SYMBOL_LEN]; sprint_symbol(buffer, address); printk(fmt, buffer); Replace print_symbol() with a direct printk("%pS") call. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> --- arch/sh/kernel/process_32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)