From patchwork Sat Oct 15 19:56:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 682594 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sxFbx5skPz9ryv for ; Sun, 16 Oct 2016 06:57:01 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bvV4l-0007hk-FL; Sat, 15 Oct 2016 19:56:59 +0000 Received: from mout.web.de ([212.227.17.12]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bvV4j-0007fN-Al for linux-snps-arc@lists.infradead.org; Sat, 15 Oct 2016 19:56:58 +0000 Received: from [192.168.1.2] ([77.181.180.27]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MeSKR-1cKbcR3YWl-00Q9jh; Sat, 15 Oct 2016 21:56:13 +0200 From: SF Markus Elfring Subject: [PATCH] ARC-setup: Use seq_putc() in show_cpuinfo() To: linux-snps-arc@lists.infradead.org, Alexey Brodkin , Andrea Gelmini , Kefeng Wang , Noam Camus , Vineet Gupta Message-ID: <164a402a-de20-645d-00af-9a414cf745c4@users.sourceforge.net> Date: Sat, 15 Oct 2016 21:56:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-Provags-ID: V03:K0:DUWtO47GrnS3DaPfvWKqbogFhhuwYAW0TnlhtamKKvNnQ2MRamg L3IaOL1CcPij0iVYFoJfMa5gepg+lWQfFOU3bH8DpHtLewhcIOG2e3wb4G5nCDsr244l6kw /wk3nxKI76S+Hjf5ASz9EgLa1wmFSW9KQBYuZmdgbFOMJIaaDeQt33gY+fJwgVpUWYEtRdX oyQTqY9Mm2YGhSjrzEziw== X-UI-Out-Filterresults: notjunk:1; V01:K0:eQJllFRZEFc=:Iw3JhErsF7+RQpzOgRTNbs dn4HFtbRtq5L3NY003aai1+0Le9T4SIbjVtOzYKAGdXYwHbJacNaxlUAVIKfr8v63os88w1B4 henUsdH9/ysYw1DLCHlRMxWCwUvFCZUYi4iFZougkbGpjPmKpMxA8t3EHhj/rovab6Gzd7EHX ZDriooUkCq/UMt2JFE6YQ79cKO4s0Vcef8uAnKRrB2AokNtHaqd4uOqXriWHc8AhRBk1x8Oal jDqG6u5ibPwGAo8qsBmQhJXM10xiCgFgJ+cDg/579OdwPsAXAEaLcq+oQlhBjY1c405nM/9tY 5JOPYX/P21c2lRVTTlTBKKMx0IYX3B/0H6fdwCp/jbEYFblGSwD+lRdvq79GEACjAByh6PsIA +n6nqTwe5l600l+gc51tyIPHNAdrTz11DdAqKLXvR4ZG3DuN/ggjicsyeptCCwnRFYBysnH8Z +EbqxFbzAEM+7XGpr0PCQGDFNPpjb+0emBVNGrY7WNTNnZMgxu7p6d4WgV8ReTwLB8p3o8KiG MLTI4bjoYC4sbVDYf0JcWWuS4rqCDLAL4l5gU57Umt/IAqU3KR8BuwNBJ0Ay6ySYE0R9sgnjc 1pIgciOsw1jC14P1hl6Hq4Eo0umT0+zLFObvPQKL0SFJH+zzIScZnlarFJusqAF/IBDBWXRgW yWy9X2Lt/b0TrskuFtQrFCiIesZS8igHt1VqLtRYPvAz1X0Yo+fNZt28F76+GOidHa3rIKSf8 kuCFwTN/CN4t+DulV73GCPXyFz2WEGVUzE6Ux8K5xfpHEpVloOQ2LMRop9Fw3L/C+rUeavIeY C2jICfY X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161015_125657_806395_BCBAD8E8 X-CRM114-Status: UNSURE ( 7.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.17.12 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.227.17.12 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Markus Elfring Date: Sat, 15 Oct 2016 21:31:16 +0200 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/arc/kernel/setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch/arc/kernel/setup.c index 3df7f9c..e3f5432 100644 --- a/arch/arc/kernel/setup.c +++ b/arch/arc/kernel/setup.c @@ -494,8 +494,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) free_page((unsigned long)str); done: - seq_printf(m, "\n"); - + seq_putc(m, '\n'); return 0; }