From patchwork Mon Dec 11 12:50:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846954 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZI/kHFMw"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KARW7I08"; 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 3ywNBy2Jplz9s1h for ; Mon, 11 Dec 2017 23:52:10 +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=WhsY6RuRGSZim5d3VqxQmmFEGOz65sCD8yInEbK5Jwg=; b=ZI/kHFMw8B0YHW/WN6/M0iU4a6 CTX88tTo5SEbSKSe6k6HKPyFjUl+XRWhQFnJCAacDB0Gu7Sr7Z1pY3k8562bCu7z9myXBsgSNKvnO RAlb7ocfXB9rjW0BamjujH5s5Y7Tdf3efaO346cE6x2qO/0iE9b4a7HO+EVfrtxyhjzeR4oUJKhjW vS9tqsu0DasPTjjtaDeRMgoB1eIUOmVq1d9t7goDwkdmwJs5g2tSHNNEeVjI0c2X0DdCtWxectJGF 6taVr9sKldAN/2vgULWmtPZ3a5FfnK9vH230gxo71uyS5QS7C4w3fsg2+Cy+dazZmvK8z0UOzokyf puzXZ1Gg==; 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 1eONZ2-0008JN-B4; Mon, 11 Dec 2017 12:52:08 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONYB-0007NL-Pk; Mon, 11 Dec 2017 12:51:21 +0000 Received: by mail-pf0-x243.google.com with SMTP id j124so11465578pfc.2; Mon, 11 Dec 2017 04:50:55 -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=qEl0K9sqaOmfhtH32mtnqlXxAi4hxaJLTXG2CRK0DY0=; b=KARW7I08ycIQhr1K2lPpxqm4dglw+kUbRIGWu4j/wHfZi7ECw8Tz3VQ9Y9Zs4NNt1z BDgE8lfW43ibIKM/3y8U5ocF90h7MciUVwY/f8V+T/bNyDobtCVP3fxfL0fxxTm+T8XB 6ROKyUEgIjIDJ/OlvTqtZkkgs9qEnBevj2leypZiz+YF3vPTat2JcHu/ChWvfQENQrYI MOC4ZDfef8PerrALDJwlDB8z/zuNc0mzT8YPc2BHXBwOYJ5QqQo8Sl8EgbRh6+HhY38V BOCbg+S5+TU778nQ3H+Vj749GViIlRLPkRqTbWMgPEjlXoGcPEp8nqlRa2d3IH3EKhwV drtQ== 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=qEl0K9sqaOmfhtH32mtnqlXxAi4hxaJLTXG2CRK0DY0=; b=mcnRspNgHZFlUuziVD7YN4MAS/p14JA9gKi6p1oflSfXr6sla0mp2urEYfoDQkFoH1 9DYDPoSQ/CppvT5rQmtyd3Z1NKsIHJ8aVcsY7ydvlBPfK6KrsI2gSBs53BNs/eWObMnc 5cWJHQdmlX8uBZ41ZRzDI71+H+DQlGiA+4IM0WD8gMepfEVZeU9Sx6q7irMLlViJ9OIH pY1YE5N9XM9HTOy8HlN3cLXjmt1CePRnuHpJHtq8R3WRimc7CH7IhJpXp5HaTwIYO48h OuvikJrqe2FnFU9Y3x9yPrq1XexB/gx7G+B6JFg1/sCVcrcAnx9gpVNntX/VdjqVvD+7 K6wA== X-Gm-Message-State: AKGB3mJKHiuQzgHzFdXs8IzEVP8zFnJRbFaDnyXB6Nvssm6gVVU5CERl xmd388NlMNZaTKVKfana7Xc= X-Google-Smtp-Source: ACJfBoscWkyON9fHwn1GObZVuvq1trcTJ0uXrie25USGAN+GAOpoE54kcHdj86NwsGc2oILoaWt2pA== X-Received: by 10.84.231.1 with SMTP id f1mr282452plk.352.1512996654615; Mon, 11 Dec 2017 04:50:54 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.50.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:50:53 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 01/13] arm: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:13 +0900 Message-Id: <20171211125025.2270-2-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_045116_526943_63604A03 X-CRM114-Status: UNSURE ( 9.18 ) 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:c00: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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Russell King --- arch/arm/kernel/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index d96714e1858c..db004f6f547a 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -121,8 +120,8 @@ void __show_regs(struct pt_regs *regs) show_regs_print_info(KERN_DEFAULT); - print_symbol("PC is at %s\n", instruction_pointer(regs)); - print_symbol("LR is at %s\n", regs->ARM_lr); + printk("PC is at %pS\n", instruction_pointer(regs)); + printk("LR is at %pS\n", (void *)regs->ARM_lr); printk("pc : [<%08lx>] lr : [<%08lx>] psr: %08lx\n", regs->ARM_pc, regs->ARM_lr, regs->ARM_cpsr); printk("sp : %08lx ip : %08lx fp : %08lx\n", From patchwork Mon Dec 11 12:50:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846965 Return-Path: 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=) 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 ; 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 X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , linux-am33-list@redhat.com, linux-ia64@vger.kernel.org, linux-c6x-dev@linux-c6x.org, linux-sh@vger.kernel.org, Will Deacon , x86@kernel.org, Sergey Senozhatsky , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 #include #include -#include #include #include #include @@ -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; From patchwork Mon Dec 11 12:50:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846955 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KzPee34t"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dt8tiB1i"; 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 3ywNDB0S19z9s1h for ; Mon, 11 Dec 2017 23:53:14 +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=6hkjLKh02ZJKXztzPBaJgBrR8aDURTveMkzjlIJwa14=; b=KzPee34tuvDcobOHjyRT8jjync dBZEXGoFWEhBb79ZOaXCH1kb4JjuCqx5PWeGApdTNJXsqWxOKdzM/QuN8tvCxqz4zekhbhBU3ZTMl /xi1pKxkEV+dDKTG/AUcHIBe/kEZBno+gsVxjDZ9BCRc6mMBdQ292qjJKeitBtH72tZrPfQ4Cb+FK FrbI1jh5NPyOlFqWuSvp4+HbgbMyFVehgIX93/jnVDIqTrfhJWbcrguo8VCEJXZkzb/HZGwvP5SjR 6pH+1wNd0j+Wjp1vx44x1/WnT9KeeEez8UwettMZpA7h07uXEH6nZWS1OoYybZJQUwMlhl3mplKVH I4L0E8Kg==; 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 1eONa4-0000Zw-4k; Mon, 11 Dec 2017 12:53:12 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONYZ-0007ak-HH; Mon, 11 Dec 2017 12:51:52 +0000 Received: by mail-pf0-x243.google.com with SMTP id n6so11473418pfa.4; Mon, 11 Dec 2017 04:51:19 -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=ZFB9ps8rFhRmhvjJE5NpTgAxFviXfoaXY9VkPt2Wdb0=; b=dt8tiB1i344FL8PZLwq8K6IrVnU8i+/8FsortFL3YqqidAQTrMJI9CtLCpOJbrgGIz rq6VzdsisNrYPObfdkPNQRvpM2j8+s3vA2f2A4mz/BA6nXsLDfh750+t3Ks/XwM6Xx+c Z9HTr1gUWuztQfuDxJ4YUSFfCFxBd4mqwoMLxa79F9wvb+WYpJr9uZ2r2FLpIOdOWRzR g9wyRjC9iBMd9nmUML4mJN2WCKV9CHno9QgtilGT7rg9QMEzO0BNO2hHV3hvPuA90JV+ sRAEDQZPHYksNhXjT6AnViZZ4HgcSzYNLBS6ngoOUhDEQqG+RlKpTyGzCbpaCLULnKW5 djPg== 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=ZFB9ps8rFhRmhvjJE5NpTgAxFviXfoaXY9VkPt2Wdb0=; b=aht6Do6T+k1u1BceXBjxvT2WumCspvXp/ifjkEAkVOwAc4cluWRNSeiEFlm1Vnoi1o WXy4WYIkArsM+VdRPJhP3+dpvjA7X+Z86QmQbdVZznDxaAr/kf0MIlmwb3r96kyabRCc t6AU4smQxod5h7F1GXGQ7Zs53IB4jCy/w9Bh4IN9LeJtLqSPPs/ANB+k4KciWwP1i/dx S3VRLmG8syYFcXb4TgYG9oHas/UVALWb9NZcM9shEXfIqC730OzYKE4js+g0m8KAELQV SHBVg2DgI+a334oqw4pRduEPvpO8EyJxth8WLgvF3qUxLy2Hk4tiPN+GWuIT5s1aQImY U5nw== X-Gm-Message-State: AKGB3mKakLcvoLGyXWuG1gAQ+EluHanxFHQpdh58/z8Zyb4IMKnifDwY hEtRI1QoSJ38nIpFj89OP+0= X-Google-Smtp-Source: ACJfBotKC3aDuL07kqSfpA8aWxm1OBzMnEqnPFCH5TGykgEt4E3TjBSuLxcjuT2gEEQWAUH3u4NA1Q== X-Received: by 10.101.93.8 with SMTP id e8mr266279pgr.214.1512996678504; Mon, 11 Dec 2017 04:51:18 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.51.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:51:17 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 03/13] c6x: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:15 +0900 Message-Id: <20171211125025.2270-4-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_045140_708928_40EE1497 X-CRM114-Status: UNSURE ( 8.57 ) 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:c00: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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Aurelien Jacquiot , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Mark Salter Cc: Aurelien Jacquiot --- arch/c6x/kernel/traps.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/c6x/kernel/traps.c b/arch/c6x/kernel/traps.c index 09b8a40d5680..4c1d4b84dd2b 100644 --- a/arch/c6x/kernel/traps.c +++ b/arch/c6x/kernel/traps.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include @@ -375,8 +374,7 @@ static void show_trace(unsigned long *stack, unsigned long *endstack) if (i % 5 == 0) pr_debug("\n "); #endif - pr_debug(" [<%08lx>]", addr); - print_symbol(" %s\n", addr); + pr_debug(" [<%08lx>] %pS\n", addr, (void *)addr); i++; } } From patchwork Mon Dec 11 12:50:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846956 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Y1ZRL1BD"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="0SEvqQLw"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="BuJsLJHI"; 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 3ywNDk2ZZqz9s1h for ; Mon, 11 Dec 2017 23:53:42 +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=W6ISbVMNb8zX80Utr8JNygLfiA16nPEgSUI7RTQxpfw=; b=Y1ZRL1BDz84l6O9IAJh2KgyYrb q3RzdCckrKD4Ai1UL/38Ab51vRRP4xe7GHxZWPTe3Ojj0uFj8r2hfe1Av5nlL7Nz45YESmHNyAgCY 6nm8ex8auS69kKIB8BnH8IhrpQ3yVjrHAr/ewwV781aIS5kZ9C8sfV1fpnjAKvAPOrGzfN6zIRkhI B1eoWXGWtDmZb6Vqka5UJjU8p3PQPXg+H9RYX9EQh8Iqto1cjqea1L6K4Emq0GDhUbxgEDgc5ihaC S85nhDt7Z3TNPZEOAt6Ek0HPAKRQBIn9UQ5lyq1WcEGjsrkN405A6U2fL3qnf6CVqTeVO3Q316Y3P d6QMMYhg==; 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 1eONaW-0000wg-AE; Mon, 11 Dec 2017 12:53:40 +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 1eONYu-0008C8-KG; Mon, 11 Dec 2017 12:52:00 +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=tGwX8z91QSwwkSQBUA9U7aM8223sfdzPuJhMLjL97Tg=; b=0SEvqQLwCPTWpTWXFZBt6zktU LWvoNLA7EVx4EUbgRhJqv3SfYi0QsTv5CJdf0FME93G8UkSKMxQokgch+cCa8x2FO700n+j6ZHZqr xIdgIDjtCvF8ixb5FulMRHB9CNCEkbXYc4Vew8Vz61cz1PWXfS6xoqZZ956BLgQj1m3krq86NEM7g ED7jaYhgoZ1VPl4gXuaGscl4USFukqgumISiAAygsxNKHmfGzjCZaduE40H1C0W9CUNGXzYO9kAuJ +y3NiGD3S8MHXeXwcrZSC2riO3OFPThJMhQRir+Zlh3inTleaDoJ0UvoUQI1AJkrF46r/UAgZ+jD5 nhEVBMXAg==; Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONYq-0007xO-5w; Mon, 11 Dec 2017 12:51:58 +0000 Received: by mail-pf0-x243.google.com with SMTP id a90so11474005pfk.1; Mon, 11 Dec 2017 04:51:33 -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=tGwX8z91QSwwkSQBUA9U7aM8223sfdzPuJhMLjL97Tg=; b=BuJsLJHINypmi5UJYd7iU5s9duFa1M85AJJM6MFpEIA/Ku+f2Ked4ymbmLe6rBdKaO TpRbLmd7V61Bq0wfhYnz4l8HtHJcHzHHTylY2mrxg++V9cSQMRYcKitBVpAFPH5b4qiO nmQxEiTS6xwK8jDenbB/hdavnvQEHUYSNhConpDSsITzC6AmG3mpz0NPDcRGPchnv2rD 3wglt+NYclFEqbCyz12qnUczSvxdUkvzt3fluiW4fbG9esyGuEapGCDenQmy91aETtCl Xh/S9jYQzbWK68sqbJKDKHVExoDPTKqgncBJmsM70psXxIew207uLOZMZ2FL8K4jpyjX yFfA== 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=tGwX8z91QSwwkSQBUA9U7aM8223sfdzPuJhMLjL97Tg=; b=Sy7TkQ1esQE1OKlv4Ol21OLU02jXHzdedMZvnB4J7kNZqQaq5PhI9WJornOHux8yKn mBMxIlpmkJ9Xzj+cEDCoA6A4NHXJPycVZt/6RkqLfoxicZZ+524amgm2jiocm/lP0DcM 3G/YiJWS22YXzpQQ6rwEFv442g4Ilyfs6wEDguI0lGiOwd4lskOC85h64pH1mwxcs8Px 7OO9tI3J+ZgxzxQ0Uh+PIWFSxBx90q0d8jZU2BuqZ6CHe3CwHuxcJ5dWm0QMNpTdhQlB uIjBUAvm5hgvqORwb+0wMa1AlKAdU0wpTgWuiAktlFIhaFkHw6vh6Nuq3a4BrWvPqv/t 3FNw== X-Gm-Message-State: AKGB3mL+MsYkqnY0OqYYQPVfEvS9+TbyJSzNxhPyANDXwn0BZl5p2tUM aTV8w51VlsbWaauQZSMX5ls= X-Google-Smtp-Source: ACJfBov/EK4eVWdpQDZ1KIJ7r/7yjltoLvHTO8AGpS4gn2YjKT0zBZACEUNllqYpbkN7akH3YEjgrg== X-Received: by 10.101.101.205 with SMTP id y13mr238203pgv.249.1512996691309; Mon, 11 Dec 2017 04:51:31 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.51.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:51:30 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 04/13] ia64: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:16 +0900 Message-Id: <20171211125025.2270-5-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-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.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:c00: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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , Fenghua Yu , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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. Additionally ia64_do_show_stack() had extra buffer [128 bytes on stack], which we also can drop now. Signed-off-by: Sergey Senozhatsky Cc: Tony Luck Cc: Fenghua Yu --- arch/ia64/kernel/process.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index dda0082056b3..968b5f33e725 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include #include @@ -69,7 +68,6 @@ void ia64_do_show_stack (struct unw_frame_info *info, void *arg) { unsigned long ip, sp, bsp; - char buf[128]; /* don't make it so big that it overflows the stack! */ printk("\nCall Trace:\n"); do { @@ -79,11 +77,9 @@ ia64_do_show_stack (struct unw_frame_info *info, void *arg) unw_get_sp(info, &sp); unw_get_bsp(info, &bsp); - snprintf(buf, sizeof(buf), - " [<%016lx>] %%s\n" + printk(" [<%016lx>] %pS\n" " sp=%016lx bsp=%016lx\n", - ip, sp, bsp); - print_symbol(buf, ip); + ip, (void *)ip, sp, bsp); } while (unw_unwind(info) >= 0); } @@ -111,7 +107,7 @@ show_regs (struct pt_regs *regs) printk("psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s)\n", regs->cr_ipsr, regs->cr_ifs, ip, print_tainted(), init_utsname()->release); - print_symbol("ip is at %s\n", ip); + printk("ip is at %pS\n", (void *)ip); printk("unat: %016lx pfs : %016lx rsc : %016lx\n", regs->ar_unat, regs->ar_pfs, regs->ar_rsc); printk("rnat: %016lx bsps: %016lx pr : %016lx\n", From patchwork Mon Dec 11 12:50:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846958 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="j/KmAF9Y"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pxQAYAt0"; 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 3ywNFh1C6Wz9s4s for ; Mon, 11 Dec 2017 23:54:32 +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=nWVRicz08ZQWhyfmOVjSTtzBZuxoTF2OnKwgNhseyaA=; b=j/KmAF9YcNfzfoS3PG/sb4OvOC 0yMvRQ0RAZC2mdV0Q7PolkQ+CdTJMBnFJlfvMGAZAJMmH0UCRA7bjv0oqOu6VJ1JaP/3b60EgSQH0 OTu38SW2Aa49lpz70VEawy/Otc352WScOcU7jYK0x41jiiZ083M9IMokhj6wnN5fqwP39N/vsbLiP GE1wT8d/Cz6TE3R0qt/OxDebQZWlrIxb8JJcX4BWO7xBWyaDfdYktVcxlJo+5oMi1IzXvT7neEMu4 XK4BSEgzd6lkdxmd2j1juVt7WGyNf0MsLWVqICBZAglAS6k+Zd+bHqo5KboGQ6O91QgPBWH50WIFh iXolhT3A==; 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 1eONbK-0001hc-8r; Mon, 11 Dec 2017 12:54:30 +0000 Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONYy-0007zE-Ol; Mon, 11 Dec 2017 12:52:25 +0000 Received: by mail-pf0-x244.google.com with SMTP id j124so11466994pfc.2; Mon, 11 Dec 2017 04:51:44 -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=ACo0+eJa7vFQ0ryzcHVvhQQIJ41m2NitnhBbAhnYDK0=; b=pxQAYAt0SBrD1D8YlNxWwi35eKffYc9AI9JKvhME0gK73PFvgCLuCtcTxZaEogrsXf KbHpCKBWbCA/TuWK0nb2zI6Sk46LaBxyPFWWVOgdYpmVKuUvGHiq/FTs8nVF4lhs0Tpc DXDsI6oKz0nEkvHUAu8lfTBVNLnD/Yy4UdMb5MCkI/CxoE9FCHYR26JH0/rQjth7ymPp a+V1AGfWCjzif23gjHjn+ah0TnicnE3LT05C/JRcP0DSSjJSIkZPh9RNYu7a+HhtrWh5 EEluH5iud8cbCuqul2yXu080UqvYMCsYXI5GUfobai4/pmrFmulyHKoVG6aWIUHnYKEx JgAQ== 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=ACo0+eJa7vFQ0ryzcHVvhQQIJ41m2NitnhBbAhnYDK0=; b=seTdMzJu9W/8FqzCGiktYLo18IELEQq+qTOcCuy/JsroWcpI3fR8y7lifLFwLXH1J1 /xXsIgBEWYHQGoJ/SAycfirLaVxvUw1S/WRDJvS68a1BriB1ci48d8CycSzssxuHaAlt 3q4PMrtJfY58z//wcJbspf5+tzSaTcs94/I1FZVGDpvbWtYUOzY8SxoHC2tap9E1mVhF DZ0QJAaMEOKklchQFLsdAH/Lj0mc5TkjjT67Yi4KRtD8zOdPORlFr8LnrKZ9vnpCm+ih dCSWjrb8aVRdyA2+22Gb1CdEnuVEkC2TRU+e8s/tsblpdUiZR04oVkYWWfIPlfhNVJfI Hfsw== X-Gm-Message-State: AKGB3mL9SiN71lZitM/yKlJWPMh2FN9vcw26B2Thu5vdCT2ezeruefg/ C88jTLqTSD4Pb6iSJ9UNOps= X-Google-Smtp-Source: ACJfBosHUGHehe1MtfMOMxe4pUeiMNMeYQVbUHdeYraSWYt6VtZ7g79yttCuyVeyh3sdyvrEPqodQg== X-Received: by 10.159.207.142 with SMTP id z14mr256764plo.235.1512996703698; Mon, 11 Dec 2017 04:51:43 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.51.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:51:42 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 05/13] mn10300: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:17 +0900 Message-Id: <20171211125025.2270-6-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_045205_530365_BC701F25 X-CRM114-Status: UNSURE ( 8.26 ) 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:c00:0:0:0:244 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: David Howells --- arch/mn10300/kernel/traps.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/mn10300/kernel/traps.c b/arch/mn10300/kernel/traps.c index 800fd0801969..72d1015b2ae7 100644 --- a/arch/mn10300/kernel/traps.c +++ b/arch/mn10300/kernel/traps.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -262,8 +261,7 @@ void show_trace(unsigned long *sp) raslot = ULONG_MAX; else printk(" ?"); - print_symbol(" %s", addr); - printk("\n"); + printk(" %pS\n", (void *)addr); } } From patchwork Mon Dec 11 12:50:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846957 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lMXJVWDU"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="kGphvljM"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DBHWNDoZ"; 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 3ywNFC6wCBz9s1h for ; Mon, 11 Dec 2017 23:54:07 +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=4rxTq8Sqps/WRgGj7Hsz0chN0mq479bJi0miq0LdUVc=; b=lMXJVWDUyNwpLhdvo/TNb1u0H0 eALQb57TMVoxy2DUC16n6kkaw3Qi5gLolJXEx/8et9dOLnbsD4Si470W9yZ6IR9p8+Mo1HOlYvjnn RaZGmUaPUgF9QQOnNo13zT2JZPVqaAbtCUKt3UMvlubMgjIwWiLPgNvPFxpYE5GcPCc3ygVFdf676 g+k3WvygdlQQ3ik0QZ0sFWD1qnBzFEEgLlo582ySMbGuOqWPTO4XGoxg77eB55Brl+PtK3q36M8TR wxcqqFwM2dRwZWeiglWlPlZ6Q4RaaBAS1NZevwuisc7/dxpqb48L7QJcSD/Ef4rGX0kmT8IDT8lSH lFlDxKfg==; 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 1eONav-0001KP-M2; Mon, 11 Dec 2017 12:54:05 +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 X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu 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-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.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:241 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , Rich Felker , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Yoshinori Sato Cc: Rich Felker --- arch/sh/kernel/process_32.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 #include #include -#include #include #include #include @@ -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); From patchwork Mon Dec 11 12:50:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846959 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VYo6Ipix"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lDusNyUG"; 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 3ywNG76p9yz9s4q for ; Mon, 11 Dec 2017 23:54:55 +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=9nOmDGQn2uJxVW27RAmwmt1AK2vvtstF9vPPqNRb8Qg=; b=VYo6IpixV+DwIQpt7FHJeLIcAM E+kGgJpXZjBwf0houWPX5gY9ORJkJyh1ZeuRVaCY/EhGNTDNgucW/1QBZ+X+Qqlibe2+2FNaRa1xd 8s0hO6bQYDjYXQh6XTYRIcAufvtbhOw/zbcFpQSV8akmytoKuAJIVhrBksGbBl36uO39k4tRTO9vM JDV4YIZ4ymGBFHY7OpFRzfl58VYjGbGmt/44xFgQGc+vSaJFqbR4l7vxrR7h2VX1OAYAyjwtxZtrE 9jP6nl9ECo08JITILDxwPEzhUZdxPwOcueMdpHMDWDrrUv6HWmp9lPXpGBgbPB4Lk+Yx9QrX3WBlr bD2T5l0A==; 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 1eONbi-00020w-8r; Mon, 11 Dec 2017 12:54:54 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZM-0008J0-5L; Mon, 11 Dec 2017 12:53:01 +0000 Received: by mail-pg0-x241.google.com with SMTP id k134so10865033pga.3; Mon, 11 Dec 2017 04:52:08 -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=elYZJDsSm2wC0PAmPNh/cIruE7J5aB74Mj8hAWUrV7o=; b=lDusNyUGioNcGCWrrWlcsjOnuesbSF43p2m2YkTDwZs3LetRDrSjNkPSUBqFVtTmPs Mclr3VGYiEaEnwXkJbcEWEWPlBLhHujTLjd7ScldJcH2c6f4Y2yjczZIsn6Mf3LIHmG+ pJ4b5BHQ9p7CorBlFwkN0xifztEjKaDN/XQtrlaxSOjzPkgiocZOnzCjc4SwrFZUAihe ZaFCgSpiQ3KHpOR2whVLSzQKb9md+Bx4+v0jjmbvJho19nc902J630DG7BEOQcAx/z/6 oideuCsxIN7OpBxUjsvBIa52rYHCLnpM71dJLs42t4E7WB1bPotHq+Gf4sNfIkpH++10 7ALA== 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=elYZJDsSm2wC0PAmPNh/cIruE7J5aB74Mj8hAWUrV7o=; b=Ti8irWnWCK2ErES0sup/uncEueU5yWMGXdhfbrXSszKkKCflS+4bpekj22suh1OSsz SD8wzaaUvPdGivIGmGfHUAnEAvx1jbGcyy4W2Ae0s6raIT0tqf1E6LE+6YDrWlVpYPak xPby6zh89ZQ0+zOxKW60YMV0M7Pg9aiztvVhQ14+D+zCnuQ/fzzC+XisBhB6Q7OBI27A PcD5aSG9M4LWg0ba4e4SWVm8R6FrFA7rQo4ZZUUu5EiIQhXlnazWkkKUs8F6Hvh4q5FD iLtYGtbk6M0GvYQChsSewK2JBAeA+suNKvZzO3CmT2SupzyfvqoyoxnWsZAlk4wFqUCL xZnA== X-Gm-Message-State: AKGB3mJ4736WDTY0KU3pB3r72nxUPup0hywF39SW7U+UNts2qssLJe5N ggVOpPwq78IfbZhwPZ6dcOk= X-Google-Smtp-Source: ACJfBotqEOIc8GqhOWvpUJ1KdEnO9FF6MIE+m3szetK7DMAvzriRJLNTl9oAWuBFnImE5A5NOq7w6g== X-Received: by 10.101.78.203 with SMTP id w11mr223784pgq.439.1512996727513; Mon, 11 Dec 2017 04:52:07 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.51.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:52:06 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 07/13] unicore32: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:19 +0900 Message-Id: <20171211125025.2270-8-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_045228_646710_D43F5943 X-CRM114-Status: UNSURE ( 8.89 ) 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:241 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Guan Xuetao --- arch/unicore32/kernel/process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/unicore32/kernel/process.c b/arch/unicore32/kernel/process.c index ddaf78ae6854..9a9d49bccc02 100644 --- a/arch/unicore32/kernel/process.c +++ b/arch/unicore32/kernel/process.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -139,8 +138,8 @@ void __show_regs(struct pt_regs *regs) char buf[64]; show_regs_print_info(KERN_DEFAULT); - print_symbol("PC is at %s\n", instruction_pointer(regs)); - print_symbol("LR is at %s\n", regs->UCreg_lr); + printk("PC is at %pS\n", instruction_pointer(regs)); + printk("LR is at %pS\n", (void *)regs->UCreg_lr); printk(KERN_DEFAULT "pc : [<%08lx>] lr : [<%08lx>] psr: %08lx\n" "sp : %08lx ip : %08lx fp : %08lx\n", regs->UCreg_pc, regs->UCreg_lr, regs->UCreg_asr, From patchwork Mon Dec 11 12:50:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846981 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LhIQny/G"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="VGWkDCjJ"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Ga8OIa15"; 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 3ywNYZ3FpSz9s4s for ; Tue, 12 Dec 2017 00:08:18 +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=EgiAXR2VsRxTS3ozPjqwW2b+2vTWS/6j0uzcgo328PI=; b=LhIQny/GwTInCXDhgEUKke+mPz 673S0l+mHFzZBS8gXnk0qc/luUj4WPpH5nu3RvB49Ar7da9PUFX1qd/Ao1vp6of5AvH0oBdllfrKo Z4RvflYUNJeo8PQeo5wxXXMlYofRA5bujlq7s7kKCI7ZVlAlaDHbvBzoMp+CtOavXznBiVqYnxsTQ GM8oc0aAglVP1MaFMQC0077gfqNx2N8QYFbiFHChI8MxcvN2FUrFivDXnM1sHMvHS4GyPIsxxIS6j jEU7t6+rnybHUOA+/d67qrYw0sU04+xbpyaFNJ+KsEWX4VHw+rUBU1ZtnnryCiTwY103aa1revlT/ DKP8XOJQ==; 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 1eONoe-0008Qu-L5; Mon, 11 Dec 2017 13:08:16 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONns-0007Rb-NX; Mon, 11 Dec 2017 13:07:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=TN4g8HWAbYM+mHgchr9hE28hhDHAqrO4CBf5M7hSqn4=; b=VGWkDCjJ2stNFAA5h/AEzpk47 rt/noCFAtf1Ov/lWHzSpfhiITgYlum6ws71WPRTgFLu9aJLdNBx97/vQoByvX+XYgMJb0XmDJOVpx PgL6i+h0HGpJb2GxnEgFQGGPRCTLCAhjKJFF8LLfibtaiWDnaGYO+EbgGTCK0Vx+s1Fgqe7px7zhu eWTjAvS8XewwQcbEJ/6WgI817Ta9gQFAK7uR3SFGdngpSnKCnfiaZH2XYSauxOXPZLsf7PNgEQPPr 0WXsHe3AhVPXZd11npGC1s29GgY2Xlkec34xMNf9DPt1siVbGjbIvDU4himlkaqyzmJXfNUDaew8l V8aacoA1w==; Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZY-00012h-Mw; Mon, 11 Dec 2017 12:52:42 +0000 Received: by mail-pg0-x242.google.com with SMTP id y6so10853764pgp.4; Mon, 11 Dec 2017 04:52:20 -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=TN4g8HWAbYM+mHgchr9hE28hhDHAqrO4CBf5M7hSqn4=; b=Ga8OIa15h+bPjPK4cqmPPGhvJ8YE6v4TJA74B8lyKlcsf4eXaFqKJ0JS7E90m8goUm cxjKHCRAHTPRGzEiU6UrDrDeDn05x42XgwtYuUWORSavOfSJXIMstufPjU+4Ejl0Vyjx iokoi6S/isbRVFuHYIEjFKk2fuhtXV9awY93MRA+EQmkjaE7GGIDe3227/VMj4K9Xffu 89xOcPAF2pf8Nu5XIKF5QtNka/eC/3whPT2xQGtuvbaJSwpmRlkMJV9Dn2rhb+Zks39P 08B7ijkD9Va0ArVlFicXuzLe4OG8cRrMqz4wnhTLJ4BOMp4/wcxN3W3eQFsJXH8v7oDp 2OOQ== 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=TN4g8HWAbYM+mHgchr9hE28hhDHAqrO4CBf5M7hSqn4=; b=W0r6PxKjW7dKksvyRXT8cuX66XOYltgBjKn2hv+AQQEkK+hWuAdv8J7QhUlXjrYZR+ /0SECmI/MkGmF+iR14ixK9rSztl0t5UCgZ03RAWR2yjoP4Owot/7PC+0eeGNRTuc1Kdc uQzrtVyoucv22ulv7UwzNCtixXyhywYCWYGyFUDsJ4jIJb+IGcPNjre1KKUosbFDpqMo x7/0MSlGr5J76gH3RtQcZZ8mJaFiBQbyszaykwg5QqKzNv5JDpbU7/TJn9pBfG09vbU8 9ifU6B6DM2JW7u/40IWiOf86Tn1Wu0gveI2xOzeXDLBugjjZ9nN8FWm5HHjKtZozVQAt UhMQ== X-Gm-Message-State: AKGB3mJFrdJ+JVwdrFWB7zm3IofnULdQlUt+Ij7AMOVeXz8N2XnS2aBm 2dNbvpLi9b3z+KVNpRewY6M= X-Google-Smtp-Source: ACJfBothzCd2F0ApMZUNaBATDQTYSmzeGW9icOAs7v32kt/bp5k7iU3S1m0fyuFVhCFsm89PWJA/fg== X-Received: by 10.99.3.195 with SMTP id 186mr252046pgd.103.1512996739316; Mon, 11 Dec 2017 04:52:19 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.52.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:52:18 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 08/13] x86: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:20 +0900 Message-Id: <20171211125025.2270-9-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_125240_894599_E94146E3 X-CRM114-Status: GOOD ( 11.21 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-2.0 points, 5.0 required) 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:242 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Tony Luck Cc: Borislav Petkov Cc: Thomas Gleixner Acked-by: Borislav Petkov --- arch/x86/kernel/cpu/mcheck/mce.c | 3 +-- arch/x86/mm/mmio-mod.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index b1d616d08eee..8ca8f6eb32db 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -235,7 +234,7 @@ static void __print_mce(struct mce *m) m->cs, m->ip); if (m->cs == __KERNEL_CS) - print_symbol("{%s}", m->ip); + pr_cont("{%pS}", (void *)m->ip); pr_cont("\n"); } diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c index 4d434ddb75db..2c1ecf4763c4 100644 --- a/arch/x86/mm/mmio-mod.c +++ b/arch/x86/mm/mmio-mod.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include /* for ISA_START_ADDRESS */ @@ -123,8 +122,8 @@ static void die_kmmio_nesting_error(struct pt_regs *regs, unsigned long addr) pr_emerg("unexpected fault for address: 0x%08lx, last fault for address: 0x%08lx\n", addr, my_reason->addr); print_pte(addr); - print_symbol(KERN_EMERG "faulting IP is at %s\n", regs->ip); - print_symbol(KERN_EMERG "last faulting IP was at %s\n", my_reason->ip); + pr_emerg("faulting IP is at %pS\n", (void *)regs->ip); + pr_emerg("last faulting IP was at %pS\n", (void *)my_reason->ip); #ifdef __i386__ pr_emerg("eax: %08lx ebx: %08lx ecx: %08lx edx: %08lx\n", regs->ax, regs->bx, regs->cx, regs->dx); From patchwork Mon Dec 11 12:50:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846960 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oovJ4B1Y"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WkaUZzny"; 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 3ywNGX59DGz9s4q for ; Mon, 11 Dec 2017 23:55:16 +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=SRxrPhb784cZqwJ2RsOjpJfx1XVWkSJkPgsn698UEZI=; b=oovJ4B1Yatis/CzJDtqoxdLe9I n3cs4Zf2IPMRqXK99GlOly87ULSiMJ1SP3Ko5dqXxfdRqLPEx2HhIpnfJ6fWTxyvjZc46KR7I24Iq D7izZVa+VZ99k3Wsvwfs1j4SKE7aBFhG7QPn+29VL95gs65XeoHAdyfuMM4BAhMif7zSWaUB5l290 Vps0m7P4NN6v89GaE+EtgkjYN+KQxs4g9+l983HHsc1hW3p7WGLxG4FrjxdidWclInE/oUYhdqh5D BnlQDenXbV1Q5QO9NkCQpFm2SCePyCTU5Ckg9c1JGK75vI3Y10tHC4ZNYKAfs1a5TLWnnfNPNFHkp PPtdBGlQ==; 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 1eONc3-0002yN-0l; Mon, 11 Dec 2017 12:55:15 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZj-000054-AX; Mon, 11 Dec 2017 12:54:09 +0000 Received: by mail-pg0-x242.google.com with SMTP id b18so10849557pgv.10; Mon, 11 Dec 2017 04:52:31 -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=S4BBQHxRzTI99Ok7t1usBu9CO4rOWRUAfLyoo44tKFI=; b=WkaUZzny2ozJ8bD3fuWrHUtYDqb0CmcEb8WacjGz7TNmQ0M39fbUTaWQSZtpD2xzLg CKbBBoTuTL6FMbIkHrbX8VABZKNNNrifERX8yncSS5af1Il2U7EU5QT7ZsiTfVxqcSst pjp+cU+x5bzYkpEM1m73V1WAXJyd2P6Vcwm6nLFvvy+JEuQtlG/XqAEi6ukfPMCNxoXk hw93EaxPsYay1Yddk4lU4NYPIEq9ZuHJ1+bEobmolaXoj53BYYb16yQXnLjkJbToKyBo uBVKgyg/05toTXS1kn8P6P1JZ1BIWWHn2afPHaZPmA2gOiE1InfyYVK0OevcppSoWRSQ dSMA== 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=S4BBQHxRzTI99Ok7t1usBu9CO4rOWRUAfLyoo44tKFI=; b=dYTWIPsGeaJ+cQ6gb+uiVF2xE6SVBdNuiUPmbW16pv25E3GCOO0Zj5WMJn4aprl13v G2YBe98clLrE7mD9S/0tmgNBNYzvfxTypuib/m1hTFWmMPdFHfYS3myUVbS2LzTTZKdW EY/YIqQ0meTgRn/Zcxl5Ua+J+GIgLwBf73wExNCDOlyFbRdeOfSfvENFdGy9tChB9Pnw E/f6ab8MsXxlvTpp11wgJ0/2gCV0QHy1+Gp5HzD6sDMtwE3D5LLVaij4/3uaHr1hTnYo l28wPc/limPsKRSXoxYrUaMC6xMcn6gtXCfk8zw4e6pRNJ2U0GtkoX7DfrsAsCTnJ1h0 i4+g== X-Gm-Message-State: AKGB3mJ6xW5QSqMXVzCmcO/Eo5jSIT3Qo5ChUS/LI57cKdB9exArxrKK YPtYlhDfiCvArDpfM7C3icw= X-Google-Smtp-Source: ACJfBosP+OzqDk4xnorBMaOhwtecHBCU2nXmdcFrSkKkr3khKFmNq7Z2i69b8iv1LiU8zDjaKr14LQ== X-Received: by 10.84.168.37 with SMTP id e34mr309979plb.10.1512996750771; Mon, 11 Dec 2017 04:52:30 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.52.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:52:29 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 09/13] drivers: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:21 +0900 Message-Id: <20171211125025.2270-10-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_045252_258465_D681DD88 X-CRM114-Status: UNSURE ( 9.33 ) 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:242 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Greg Kroah-Hartman --- drivers/base/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/base/core.c b/drivers/base/core.c index bf45587bcb46..36e20498159b 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -685,8 +684,8 @@ static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, if (dev_attr->show) ret = dev_attr->show(dev, dev_attr, buf); if (ret >= (ssize_t)PAGE_SIZE) { - print_symbol("dev_attr_show: %s returned bad count\n", - (unsigned long)dev_attr->show); + printk("dev_attr_show: %pS returned bad count\n", + dev_attr->show); } return ret; } From patchwork Mon Dec 11 12:50:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846980 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V3UjWURA"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="giKqBl1j"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GIG/N8ts"; 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 3ywNYY6zY0z9s4q for ; Tue, 12 Dec 2017 00:08:17 +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=6iad42K0uAIVizTSU+7GBrkvMNhEaQAuqURI8szdxdo=; b=V3UjWURAthEIlaIE+Pxwkf1wZy 0S4C0ABXwLhGsZEi+qEvdYXK3n5b264fn8aKldDuxut1pwJt2riOHdgBpW0oKp5Q52M+0yp5ktUIO qxDNOyqOShWr3rd1BNo30RnDEY1IRe5KMEU1dJQ45YOkugR1kX4qOosiAHOmT9/I8z4x2VO/Hpw34 JeL9UI+1K4hNssl4r0dM76QX4JRdg9MQEF+HKtuRIyhBgRJ+U57FyrN4gxfZqNp390xzJX+K/3h1d JD4YoQMGHEjLWlP8TeEmUICJ2eGTDQozfozdBKVnm3FcsmNJGXQSS/NqU6kvq65dZxpZCemkoiyZq KrYGRURw==; 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 1eONoe-0008QY-3F; Mon, 11 Dec 2017 13:08:16 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONnq-0007Ve-Vd; Mon, 11 Dec 2017 13:07:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=JWgoK9afefGQjnRiHihdqCp0j3QrBwlFdVYG+CbmKZY=; b=giKqBl1jEKHXN1vJQEIa37+/1 xKfb9Fibwgu/nfIGveg8x9rBn8c2F/v+Q8qGvN3a4jjZI9iWFXN6Wo/XCYKlFlX8OeeraMEubU9hC yk6PfvOslfeX0+Oga1ELeXPG+Xe37Gj8BPJcCWs87WqVImqFLd6ICTgSDHU/F7FS5olBK27bEbMjU idQZWFHlvpe5bmvPVAXWxnyjO6dbuLExkKT4yqX191EQWkiDmrVgXq9il/HLubNF0DQO9qCZYBd8s a7zUUH+9OGaxdy2dUwgcNhleDqSSM1sKWzzC/hacA6sOLUQM7It/cnGZex06A6uFxoQ0XCJrnTRos cBZxbktCg==; Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONZu-00015P-4t; Mon, 11 Dec 2017 12:53:04 +0000 Received: by mail-pg0-x241.google.com with SMTP id b18so10849893pgv.10; Mon, 11 Dec 2017 04:52:43 -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=JWgoK9afefGQjnRiHihdqCp0j3QrBwlFdVYG+CbmKZY=; b=GIG/N8ts9L0JRqJHZLAsVD6KCrT1qrSgF9bN+DW6dSjBud03dUsYugBCRQ8p8WiZiM accsuUP2vtVEiBpX7wqTOs8MEdEPyo2lSc39mLhNfp8nvcOaE1R4wwXoi98hei1qA6vm 3O4cMizp6LxGE/Tm5ncE3xP9UkVvpWzDJ9hhNqr3iy56b9gQOCm3WnqlgUrjgZKNqZMI apfiyfSDB3Hi4kUV3kZWRx1noX0MsKohzIzdLlYPzLagMYvpBpEtBhHqjbFsD06KaOv6 7EoqRYA1QaKGC3hb8EKqeNat6sgT/6jm99kjvHmV36dbADH45WHzDXOGFVKfrHlGuC2M hbGw== 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=JWgoK9afefGQjnRiHihdqCp0j3QrBwlFdVYG+CbmKZY=; b=gyyagj0/t3g7J1A5pBf9aIOB6miFNjNR5S7NaSUZB668GS6iIdyHU4OdMxS2byXSIk BXm/KcpkPufukW70gtugsrwocL9NhT3pXDo4Z3t4e6R8r/pB8J6Z0BTDrQLI42BIGyjj k/1713xDB65vrT1xSR3Ih9dtynuJOYkE06XR4wAtkREBXUvODrnHYd8NjV7yZBFNRcCS 8UL8Kwo0UC2veXK9hepVECkvjZki80KLFnIxAVVmuzeQzpmkyYT9LgcLkg8mB8FLffAY 4KRxvHRX+z2z+gNQ6u2T9THYeaY+iJRD7Tmfzof7E33gIB5fYixApx6bXckzA/KmPJV9 qxiQ== X-Gm-Message-State: AKGB3mKqUgb7zQt4KwrgAQiElozsJSn50bZPrnmNHuWxKmaCcwjUFext LfsONlQ5yTsv3eAANbErrbM= X-Google-Smtp-Source: ACJfBouo/AKXGADejX+CQGgn30nxuDayH5f8aTBQKht1GNq5+PRD2iawkwWKDObGrDz9z4UppmAxGQ== X-Received: by 10.98.66.77 with SMTP id p74mr260909pfa.183.1512996762317; Mon, 11 Dec 2017 04:52:42 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.52.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:52:41 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 10/13] sysfs: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:22 +0900 Message-Id: <20171211125025.2270-11-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_125302_334538_E1EB51DA X-CRM114-Status: GOOD ( 11.38 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-2.0 points, 5.0 required) 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:241 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Greg Kroah-Hartman --- fs/sysfs/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 39c75a86c67f..bfcbe486d385 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -70,8 +69,8 @@ static int sysfs_kf_seq_show(struct seq_file *sf, void *v) * indicate truncated result or overflow in normal use cases. */ if (count >= (ssize_t)PAGE_SIZE) { - print_symbol("fill_read_buffer: %s returned bad count\n", - (unsigned long)ops->show); + printk("fill_read_buffer: %pS returned bad count\n", + ops->show); /* Try to struggle along */ count = PAGE_SIZE - 1; } From patchwork Mon Dec 11 12:50:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846961 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pH0a5uWF"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IyFHR8Rq"; 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 3ywNGx6lJDz9s4q for ; Mon, 11 Dec 2017 23:55:37 +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=oWMEv+uCAZNSmZswCc97eur7/bcQKJ5G+izjkPdZamM=; b=pH0a5uWFwVILMUmvd+InQ//dkj zRr7RBkmHQfsz/Rk0wBPaYvk96itIITmqRkIpCCDje/HwvL2fVKL6GRiRZkEriNc4b0cmt7Pamvbf 7/qhIcIFgzZNRTwgHgP2P4fg67Sm6pNu0TjtVfJ8hLrxltEqUMM42pfXJNcFoIw9otCH+PJx5K6sn +h3Shk5j8KOX5euSp1REEboNUOmtwfeTBoyWioDe7ddzczsA8M3lryf31dip2LEhULDHC1OB90RqS 6h6Z9Gxg3nb5UTAKG/4+ntKJCebO/s3XTgZ2wZWlSdHkElx5EzEMxO7ZRp5IJY4xsOneLfv9iy2Rz IB9o/2ow==; 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 1eONcO-0003pz-6l; Mon, 11 Dec 2017 12:55:36 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONa7-0000Lp-3B; Mon, 11 Dec 2017 12:54:26 +0000 Received: by mail-pf0-x242.google.com with SMTP id n6so11476346pfa.4; Mon, 11 Dec 2017 04:52:55 -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=Xh1KAgZHKULK6oMTEezZ1r/o9WbIur36MMyO4hjj1UE=; b=IyFHR8RqQ/LjlmPgYfDfGiiMag86jq0jwmYf4iTVRmiBqpbyadRnh3wWn9ZR0xxCVU VWFZ5cVDUU22RVUpirJb/EBTYVduYP/G3CwmR2lwdAz9S497loHvCE9CA51PVI2Pm9l4 Z8D6RrvewJdSv9gt8ZXXIzTaRZiiT9BIfGdUPj3751O96a0jnk612KD2yfLMpZpugU5e xLFOlvGbf5fFO2cyvjLS7pqAg0tPqGi1tMUzSfDmiTXfYn3F/jKBthhUztgVzKFGAjXg IYePIP6igEsttgNCAOpZqC97t9enInzbLZallEOLbqZ/CoT1ZJ91uZQS/3Viv4KaEKCv 1J2Q== 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=Xh1KAgZHKULK6oMTEezZ1r/o9WbIur36MMyO4hjj1UE=; b=bMit8tc2mk6j/S8OkJ+LrJYrByXb0bQvq+AYoi3N6ZVBWP7i0iIIMdWP93cTz9n6S2 xvirlOyWK7iliG0f6q6JM8t4wlhv2GdfVeQW3hEGKcdtJiz8NsC4c6fUkwOB1kBYFbNz CAbAFFwtUgXA8SiNdfcl8uxLffdpVEFLcKXdnrdt2LFiNi6HPBV0zacxr0ekvgvvqRvX K1ACaicWaR0gaJ+aZcDbGKY98BKpUV3vtxpR2o9azwqer5IsZlNGYFhhSha2ji1SnPs6 tIUfVzimP8mWG3C+gqdZYQWMuDvTteT9JIj90LpMaSSwJbFuE3RaFA5SylhzQSZuRHHb FIDw== X-Gm-Message-State: AKGB3mLlmzRioLAdmXIqSnc4rsTfqIziN/XCDteCsUsuJux24hiHyF1J dNAFfH69LqJ6dGJjhb8BfmA= X-Google-Smtp-Source: ACJfBotjpjiPB8S+c2E8jvJKg+4Hpg11D9rbueGu3p/WZAgVh3E+ENbQDU6+X853+kdnNA9yckJw1g== X-Received: by 10.84.168.226 with SMTP id f89mr303572plb.176.1512996774484; Mon, 11 Dec 2017 04:52:54 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.52.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:52:53 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 11/13] irq debug: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:23 +0900 Message-Id: <20171211125025.2270-12-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_045316_615699_DED3A427 X-CRM114-Status: UNSURE ( 8.38 ) 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:c00:0:0:0:242 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Thomas Gleixner --- kernel/irq/debug.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/irq/debug.h b/kernel/irq/debug.h index 17f05ef8f575..5766e15c1160 100644 --- a/kernel/irq/debug.h +++ b/kernel/irq/debug.h @@ -3,8 +3,6 @@ * Debugging printout: */ -#include - #define ___P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f) #define ___PS(f) if (desc->istate & f) printk("%14s set\n", #f) /* FIXME */ @@ -15,13 +13,13 @@ static inline void print_irq_desc(unsigned int irq, struct irq_desc *desc) printk("irq %d, desc: %p, depth: %d, count: %d, unhandled: %d\n", irq, desc, desc->depth, desc->irq_count, desc->irqs_unhandled); printk("->handle_irq(): %p, ", desc->handle_irq); - print_symbol("%s\n", (unsigned long)desc->handle_irq); + pr_cont("%pS\n", desc->handle_irq); printk("->irq_data.chip(): %p, ", desc->irq_data.chip); - print_symbol("%s\n", (unsigned long)desc->irq_data.chip); + pr_cont("%pS\n", desc->irq_data.chip); printk("->action(): %p\n", desc->action); if (desc->action) { printk("->action->handler(): %p, ", desc->action->handler); - print_symbol("%s\n", (unsigned long)desc->action->handler); + pr_cont("%pS\n", desc->action->handler); } ___P(IRQ_LEVEL); From patchwork Mon Dec 11 12:50:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846979 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ovVE42ht"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="TX1g55Eq"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="RKFHbOhn"; 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 3ywNY86DMJz9s4q for ; Tue, 12 Dec 2017 00:07:56 +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=KQ9BLqdTTPuJVI65RaY1fQE8AF+eRN9ISJokfxA9Bc4=; b=ovVE42htS9307XN9mHeQkxUpwq QoDrAy6PdDUzs8YX0SE/0lCwvuSXtOeWyl49HtdMF2zALds4ZGgzN3Cu5tsdxy7hkSIfBt+zd9NdR I02WVdoccwGWT3myt7BGmiZz/0znsBnuf4hUTFVnJBZTSgQrfD/QXbmRfhmyaVyk3AT74pC3kvCq2 SXINLDdL91nkBdlZFP609LsnLSQD97P9nUNl118BuiEM0zMplIcd1OZJu9XjtPjNTK+OQkKPP2PTs i4+uMPfSm7WVELwCHMHGEvDIYo5cYKNuY8T70sC8IogLxBDGRptl8+3vaY8oixpUKxCGJt1sMBB03 s+GfIXNg==; 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 1eONoI-00084w-OD; Mon, 11 Dec 2017 13:07:54 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONno-0007Ve-Eq; Mon, 11 Dec 2017 13:07:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=4gpCZ1HgjbQGL1JUxzN3eohvcZbn2hh+V3Tw9r9L/t0=; b=TX1g55EqyQqEDmfSly0LNjmpG sAnvkWj8ehXap1dr5+TsQdfM6VeE0XE76IeRi/6Yo89NK4WAe/wv/rTu0GaKw1TzzYGWjQch98M1c AH7WhfDZoW6XODQyU+7Dj0JYdHXHtgBUkBua27+uNCbB30h+ZqQbTpb9gN5oQVBY4uA4cGGr5IoEx ffkt5nZK8nslF3Cpqws88N1oVpu8G7C9v3jjsNWDDV1uHGmeWPk/j5M+xvL5YiefLvNuzlphBPoU5 v+/QK1fMEo/zEjpiVlWUsuQeQcfbG9u/JU9gaKCAbmzzgCcCGw1VQsnkYzk3N7lJpJL8bnAG6h3oj p/wX4raDQ==; Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONaK-000196-E0; Mon, 11 Dec 2017 12:53:30 +0000 Received: by mail-pf0-x244.google.com with SMTP id p84so11474400pfd.3; Mon, 11 Dec 2017 04:53:08 -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=4gpCZ1HgjbQGL1JUxzN3eohvcZbn2hh+V3Tw9r9L/t0=; b=RKFHbOhnhewTSuijTf/z5y77qWuXPzk/4kyP+gfh6HNJ2cNwYDPq9Sxp1GPSWFTr1u qwij+71CjQQnp+SJmjYvcE2zVqPLuualB99633o101liH1hgpJacwU1a+9F6Xi77W+d5 fA2DpqSF2dnt7a4po9ShbbjJmezXrWqWBmFuCM9vo7RPl96+qp9WoHiCW2YEPEgiH7F5 yVG3i/fAKBNaXwvT6P2Tk7nNH414mwWDQQPebWEq9u4CmuU6lsPf29uOtwCfHNdHAHw5 VSn7BCk4rwZNiNXIioV2A/N28B57Q21ywJh09qKAHUN5M69OictXOkRoLBmt5PtbGxtC ft3w== 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=4gpCZ1HgjbQGL1JUxzN3eohvcZbn2hh+V3Tw9r9L/t0=; b=XgLckcp5ZDQy6R69RAyhjcMBNUmtE0TyMKpcznGJC661eJGTom4Pk6i3dFYKDC8sf+ P+qiouk7vE+6tRtcjRl4mgRKDBf//UWAeXzeHL8Er/cxust0S2IOwb+Mk5mNPrryViA0 2hH+hYqrz85XBMpdLmYSv0SlcZgzD4TGj9bYpcgCRMzpS0+sqT0r0FMwyvKI42v+0ChP +oKyoc/NepzP16NQORpm7BCe2xW92gPx/hK4LbGW07koTLLUb/44QJmSJKjydLHUkZGB MLs7FkR2FIRHZn74p449L5KtVkVqX2TOEmXCl/yUUpyJZk0ZxjtinDDFuy0wm3g+tFQG qNwA== X-Gm-Message-State: AKGB3mJudVpze7vxiWNPptpSpA8P4jYcazPWHSXIExn4NmnlTn9ZfjQa KqMN9Dody3TK+nAtGLRTg1c= X-Google-Smtp-Source: ACJfBosCntnJdexbrsG0dqprGjd0LF50UeeNR8t6b6jYp4hBAl0TFuo9dn9qHw2RiqFvWLJ/eyh/lA== X-Received: by 10.99.168.5 with SMTP id o5mr232248pgf.427.1512996786885; Mon, 11 Dec 2017 04:53:06 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.52.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:53:05 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 12/13] lib: do not use print_symbol() Date: Mon, 11 Dec 2017 21:50:24 +0900 Message-Id: <20171211125025.2270-13-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_125328_612324_6D0245DC X-CRM114-Status: GOOD ( 10.17 ) X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:244 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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 Cc: Andrew Morton Cc: Thomas Gleixner --- lib/smp_processor_id.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/smp_processor_id.c b/lib/smp_processor_id.c index 835cc6df2776..85925aaa4fff 100644 --- a/lib/smp_processor_id.c +++ b/lib/smp_processor_id.c @@ -5,7 +5,6 @@ * DEBUG_PREEMPT variant of smp_processor_id(). */ #include -#include #include notrace static unsigned int check_preemption_disabled(const char *what1, @@ -43,7 +42,7 @@ notrace static unsigned int check_preemption_disabled(const char *what1, printk(KERN_ERR "BUG: using %s%s() in preemptible [%08x] code: %s/%d\n", what1, what2, preempt_count() - 1, current->comm, current->pid); - print_symbol("caller is %s\n", (long)__builtin_return_address(0)); + printk("caller is %pS\n", __builtin_return_address(0)); dump_stack(); out_enable: From patchwork Mon Dec 11 12:50:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 846977 Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gRSr/cYS"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="HylumHY2"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HUJQldHY"; 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 3ywNXs6qHcz9s4q for ; Tue, 12 Dec 2017 00:07:41 +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=aCzSeMmbT1yKwZ4WvPdEW0AkRx/ElNmAQ4HiahzBlH0=; b=gRSr/cYSLQFBnioLkBxD92VUrU X0m1S51X06/WtgwM4F2hO5nWTfuqPXaOJMyKQgLqQsz4nZD58l7EEMxW1M2PWIcOxxFRtbXZO9n1p tsO2s7q1tJv0G5rKi+x/F0iuXcuZYtHygUxuiCuXi6JC91trLsJMBKDxAjrx3cC2biT3Ps8pPkF4h o7LISCMIqOnZM9MqnwKzEeSvOAgA6kMrJAKuIH+T95Pmp23p9W5pplLHoQsyncv2wBX3YpTtz7UQW wSlj8bkc4HPtllcbNrQ4i8s4hC7AHoDALPBlASWcjQJP10+jwVYNC7dtTBilqf+YQCggb1k5Jg4sI YcUhPg/g==; 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 1eONo4-0007pP-BH; Mon, 11 Dec 2017 13:07:40 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONnn-0007Rb-Ni; Mon, 11 Dec 2017 13:07:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=25glu8cobH+QilVNicykgVBECyKeMy66h5rsG9hpxo8=; b=HylumHY2P7ptwFqK7er/JvcwG LmjMo7sn+UcegKV0wmHn49gn6Uz8juUMupbL8pkddHiKmgNN0cRPnHF6v7oOkd1QwKLoaoBgy8P/W Gy9b/+8vak4+hNRwiInnWrOKC3L8EMCL/7IePvYHfw+u7+0FsXMIGhPSd9bJnbLvyHJ6Vqio6uDob VznX3cFWGxR7tNZpSdeUkWU+YX+R4137pZOFHCjMXJQPU2+jnFBD/xqhkw8/IjL9IK0tnhL/sQhXC WeXR7Nr9aX2BeUVaTXdhjImOGei+xZAjaHt9bb2A5XhAyZPjxsXrkr85FJ9eqvv8bW4hjSa/qUlAP k1pEcOVuA==; Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eONaV-0001A9-S9; Mon, 11 Dec 2017 12:53:42 +0000 Received: by mail-pf0-x242.google.com with SMTP id n6so11477148pfa.4; Mon, 11 Dec 2017 04:53:20 -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=25glu8cobH+QilVNicykgVBECyKeMy66h5rsG9hpxo8=; b=HUJQldHY4TvECxG9Sxz6dwGFDgTO2rGb9hk0z/+dY+fNoqX46kdBHPDswK0kyPX5jR H5APUiDLJNMTV9IWJougKpFF/DRyR31v6HiNJbQ+GY99Ya1fjqpQW9er9m3u2J8EYVOV 5IdT4aYBZzZhsUWMtU6s7FOEV3a4K3e235PDS1kPRTd9Be9RA5KPuv1EZ4YYSTsrkzY3 GYv6hNSM2mIfmqx2baUz+Ua4k2DnCnB4XcZ0DSog/NEEm92DkojnBFZzWhIRcsqky4pb UUCXoxsYfIeIw82RWbOQ6DFaCgzGukXVf2sDicsNiskAAKiJN8PvffBXM90rB5KPuKNS p6gg== 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=25glu8cobH+QilVNicykgVBECyKeMy66h5rsG9hpxo8=; b=cptJSJmOBIW1q2fpjILj/uSsMTxsBtHTnWeerBytcuS4FxasKZOjYdSi+Kg8/hK994 FtMQxtr9iFQpM3b2ryqy08bbZ9XRh3M2dSsf5fA3Di5VpVN/jLS85JoEoGow5eWUXcvH UjFKYS/ge4BpCTZR08amwFhoUcVYgzTnEC7X/x+7jjIP7kMXDdfHmArWE0fX5qKh+9iy Tif2dXgWrXhcVZCIP+P1anVzz8HDCv+gTpCF+n1o8VN8r0CiJwcOXwueEOqOwLQFA5d6 p9EhlJBfa5JulDeZbULNcan7galRjVdMTv3gD7OnYK+5E0GsJ2owSqXMEi7B/fLoInHV M35g== X-Gm-Message-State: AKGB3mJxDlIEujSvlA5aKpkEom6Hu4ocYrsw5Zn0jfAt/OzABVPOwWdu AcobR3Uusn0sISJ0isZM5Co= X-Google-Smtp-Source: ACJfBosbiVFYks48hCkY1LVL8Phx0ei+jSWTNwDI9YapB6PWP/cm1Ypqwbp64XvWGCkHv0mSqmrCZg== X-Received: by 10.98.224.200 with SMTP id d69mr308419pfm.100.1512996799134; Mon, 11 Dec 2017 04:53:19 -0800 (PST) Received: from localhost.localdomain ([110.70.53.61]) by smtp.gmail.com with ESMTPSA id j13sm23374380pff.131.2017.12.11.04.53.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 04:53:18 -0800 (PST) From: Sergey Senozhatsky X-Google-Original-From: Sergey Senozhatsky To: Andrew Morton , Russell King , Catalin Marinas , Mark Salter , Tony Luck , David Howells , Yoshinori Sato , Guan Xuetao , Borislav Petkov , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Vineet Gupta , Fengguang Wu Subject: [PATCH 13/13] arc: do not use __print_symbol() Date: Mon, 11 Dec 2017 21:50:25 +0900 Message-Id: <20171211125025.2270-14-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_125340_111974_3AA1BAFB X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:242 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Mladek , 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 , LKML , Steven Rostedt , Sergey Senozhatsky , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org __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 Cc: Vineet Gupta --- arch/arc/kernel/stacktrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/kernel/stacktrace.c b/arch/arc/kernel/stacktrace.c index 74315f302971..bf40e06f3fb8 100644 --- a/arch/arc/kernel/stacktrace.c +++ b/arch/arc/kernel/stacktrace.c @@ -163,7 +163,7 @@ arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs, */ static int __print_sym(unsigned int address, void *unused) { - __print_symbol(" %s\n", address); + printk(" %pS\n", (void *)address); return 0; }