Message ID | 20171211125025.2270-3-sergey.senozhatsky@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="og68TMop"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="X34VSyjh"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ywNLd49l4z9s4s for <incoming@patchwork.ozlabs.org>; Mon, 11 Dec 2017 23:58:49 +1100 (AEDT) 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=S6O2dIJXE8GWBcbIGN7REu+RUKwfi9IesyfddXcWxpM=; b=og68TMopkYLJwbVGGw4Hx2ClBH Fdb1jkhIsJJE6zDimEbrBUMxARFG2NRYJgAVPGwV17plO2e6bvuMfawdkJI2CV3xJNlT6NOHbpRy4 pjeS50imX4pYIdyfisC1n5cG9/mr1FBvcsYkCW2XuQJuhwuihGjWVkkjMKaUeGReyhRF4KrTvW40Y 7g6gTmRAzFLZALsChGLguYVRFQz0uSMyIMmaEBqTuUKWi68tSn+/X0wl3Bj72wwM8Rno/E2ms5g24 6fFtitIzBV3QfpjPIifEgL/qc6qX4P3xDcHjJ7V/1DLm2CRVDeW5U5T/yvuavkm5vSN5pDkEcq1WV UZorlS5g==; 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 1eONfU-0004Pn-0q; Mon, 11 Dec 2017 12:58:48 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONYN-0007Ow-CP; Mon, 11 Dec 2017 12:51:32 +0000 Received: by mail-pg0-x243.google.com with SMTP id o2so10845370pgc.8; Mon, 11 Dec 2017 04:51:07 -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=YINGigeq+G0CKD4Q/FvthKn95erLZlxG8uEGDxLjDds=; b=X34VSyjhH4tDttmpXUxvGnoQdH44kNa15Gsoxnuyfu3MGdh916olBQyxLWON/0sGFI 8QcxH3ZhNlDVcFMi0U59gAxRRfV6Y5CQrQa0pb4Vsh5by6L1SfATGE5XpTPP5wtfhkUk PUyxb8+8v6CBd8CtHbPp7N3HKjkULExT3ePtLzGITr8MUQRlwbtCGTudFDEpFifrOEpo o8F0U0c/+vjkPEcybIAcewEhjVXr32NXQ/MaeO7z5ljzJMyeokLPqHrHrnhbDR/0dGor zK76Xna5rH21YgQB4vx59tXT79JZCw4D8lbJSnGzrCcmRSWs/f7c7c+qUsOyfdG9Tw81 Tndg== 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=YINGigeq+G0CKD4Q/FvthKn95erLZlxG8uEGDxLjDds=; b=WYkH5zVE7FSDodToUyA0ztcMQgiIUiBJYFup0HzXxppdC2U4dT/HqS9zISSTko75Tv ortDE/FztYpxD+Agz0KoyJQ1v4XO/xOJb5qZv92eaYEpy3NsX7dwJqq+Ch8eucHoHbAw q2fH+JQiTpNu9wHKzA5rmEEpIhtFUiqng90XjYlNyU0oxqakcmb6ePtipHg4mPtU3uX9 2ogPr1pL8cVN5Kz2BK5q6QAMk13lA5HSrz4PIpd9j8tV1yu3ASJ3PVwsoCTaB6l4qhxb WJxlthbWd4zTgEwpJqk08DQ3aCCRkhmasnJ8SaPEf8X1jWlIE3V0hBSU7i/C4GxVrPhi BwHg== X-Gm-Message-State: AKGB3mKcjVR2FGcBuURV0vM5uLFCd9HkeGXUmDvAtxIY0CXMLztYWGyJ EEZGqVbf12We7Vv9ued5K30= X-Google-Smtp-Source: ACJfBoslBIyh/m5LZH5Rd6r/y5iA4fy5b9DDYr5hvDYC2iAwwF53sxlFGwuGQvFmoEUMtG0NpPiGAA== X-Received: by 10.98.155.129 with SMTP id e1mr269843pfk.119.1512996666683; Mon, 11 Dec 2017 04:51:06 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.50.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:51:05 -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 02/13] arm64: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:14 +0900 Message-Id: <20171211125025.2270-3-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171211_045127_670866_C81AF3D8 X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c05:0:0:0:243 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sergey.senozhatsky.work[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-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, Will Deacon <will.deacon@arm.com>, 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>, 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-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
replace print_symbol() with printk()-s
|
expand
|
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c index 6b7dcf4310ac..44bed43814e2 100644 --- a/arch/arm64/kernel/process.c +++ b/arch/arm64/kernel/process.c @@ -35,7 +35,6 @@ #include <linux/delay.h> #include <linux/reboot.h> #include <linux/interrupt.h> -#include <linux/kallsyms.h> #include <linux/init.h> #include <linux/cpu.h> #include <linux/elfcore.h> @@ -221,8 +220,8 @@ void __show_regs(struct pt_regs *regs) show_regs_print_info(KERN_DEFAULT); print_pstate(regs); - 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\n", sp); i = top_reg;
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: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> --- arch/arm64/kernel/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)