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,