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: 10104947 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 28090602B3 for ; Mon, 11 Dec 2017 12:52:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F142129586 for ; Mon, 11 Dec 2017 12:52:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5E7F29588; Mon, 11 Dec 2017 12:52:26 +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 7AD2729586 for ; Mon, 11 Dec 2017 12:52:26 +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=cJXRXS6JCEGiVzE3pjncszkmHlEXVgFpJc0UWJ3va0c=; b=i0M3+NHmYCrG+klouQkeyYY8VE ub+U8DnFMCJtp+Nw3oJZDhv6aUIPa2ABtxHk8omG4DvKECpnOFL8ABY6NkguIjzPY5lmEKu+YoCNT 0voGQR8U8Sv0lL+XVc9LIbIGDBBF+LgpTMWGCrssl4KOynJO52q+IUXU4U4IXzae1tRnfwu97RvB6 ZCOmi5fyYl4o+LBaOgK7I29mE1XbDbIu0rQtNXXVPpv+iDg97ENeeUSJS+TOCGTwZGsTbKdNK4ges bB/KdbgW5VFMmfuFBZhKUDQb4KNAkkmr5PmWu8x0/fP481WjMw9zxoy7SQOa8tdEHOPQ4BccI3XEw uO+cuiFw==; 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 1eONZJ-0008SW-7b; Mon, 11 Dec 2017 12:52:25 +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-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, 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-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: 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;