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); } }