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