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: 10105021 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0380C60360 for ; Mon, 11 Dec 2017 13:07:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6CED2018E for ; Mon, 11 Dec 2017 13:07:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB29F2958E; Mon, 11 Dec 2017 13:07:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 47A322018E for ; Mon, 11 Dec 2017 13:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=DuYIhfB+9KORbK/44jPZU4I3ajC2zNogr6Tq2VmAmNM=; b=DvgIGwwVy3UZ2mL6TpnEKo0zpC RRCgWfLOstzsGYVVipJ+s4v674ZrH8bmNirO6uu4e2VE187oWioqfuiK8ldqX9XDF5LiFK5ERjbY4 waBT90J9NPeLkfDDdim23jIXv1mTaCQiHZYQoazNavDws9LPTw1eyLPIuPKElBk3j4tvz5vOHAqzm 2Wfr8bR0uiCbOcvLHXKZpso6vBvVy3jSaID58OH4yHXdy98T4ie+OmJWW//6wKtriFOQXTnjljnRF A2dFPyChDQTJsUcpqZ8K1EZglfmBxHeRLYJJnkg4Il7A+CwNod4ViCMPme5KVeVzHIQq8wc290Tf+ mkPmefGA==; 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 1eONnp-0007Xg-If; Mon, 11 Dec 2017 13:07:25 +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-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP __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; }