From patchwork Sun Oct 16 10:08:20 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: 9378075 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 90A48600CA for ; Sun, 16 Oct 2016 10:12:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74E7328F5A for ; Sun, 16 Oct 2016 10:12:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5328928F5C; Sun, 16 Oct 2016 10:12:05 +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, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D7ED728F5A for ; Sun, 16 Oct 2016 10:12:04 +0000 (UTC) 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 1bviND-0006Tg-DS; Sun, 16 Oct 2016 10:08:55 +0000 Received: from mout.web.de ([217.72.192.78]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bviN7-0006Rr-FM for linux-arm-kernel@lists.infradead.org; Sun, 16 Oct 2016 10:08:50 +0000 Received: from [192.168.1.2] ([78.49.134.173]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LrarZ-1cyRyX0Txl-013LUu; Sun, 16 Oct 2016 12:08:24 +0200 From: SF Markus Elfring Subject: [PATCH] ARM-mm-dump: Use seq_putc() in note_page() To: linux-arm-kernel@lists.infradead.org, Russell King Message-ID: Date: Sun, 16 Oct 2016 12:08:20 +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:Yk677O4k16pQhyJuSX8xKyu2Mcoog4+OOeLux3aZkmF8ZsJ+KgF 6Vy0IJbJ4Qa9O2K5rkatT4+wvdavBHpeRcHDyb77SOZBjMVt6QTJZG4wORyS/FQWBjRoxsJ 1cMKdnA06pTahOcVNubMRicoMriav60XhEftLlEwHB+4QrAGlFJsvUpcgUeFjfVFlinQM4T 2LWTC6cK6+ipyNsB9mWeA== X-UI-Out-Filterresults: notjunk:1; V01:K0:mUbcquu+W4w=:mCHiak3EY8hBty8s9d1i1Z n/l4qx7E6BDSh6Xlwj619JmZpTdVqwr4t7t4eZaoTI9+S/YZN+kNOqBtELwQ7BjwmN6eBZY2Z DUmgCq+2SRVzKx5vlx5yLarOn4JjiTrTeL0IGUjTx4/C+i9eIKCVJLzwTF/95YF+GrYpxV80y nZgqrZPCWw4sBnGY/mTvNleAWyBnvwMG4KX1v1/FgPjz/OvJ3n87yhIMxjpz/BTtJ+JuHY7Wl bMjf8ch0Dg1cmP9Zw3jnzq4gI95HZxWTy91KyVRlwYpZ39Uh7spLHeTSpOzOKRZYT0Lr3fBjo u88+hb90oFbU/ncImsQujnvY7N9F0E13pnEOnTBn59UvYQd5X+gdmFI+Da0v7STZx5OkBPgDu jNQjysHuqaizdaK0BE22UIrTyaJ6JSvW8gIdogOxayjEAda9xL3drZKEd1FlS0V52W1fglTHC ItfW5VrP148fpPLltM3Q5yrqhFeQZtr4Dx3gWhR9kid7u055eM4vHbjjV88OOavGwYFDKLWF5 opC7ma2/Sx66K968RWYjDjvWz3i6ko5I6rYiOCtyar3KDNrZ2MFqZUEBITEusOjiT1PTxGHke rI0JJU7VEKm5nLhtTErwZVQM+UEK80TuvGiDKuYl6LUqkfGCL9o45xwGFY3nGBUYg8EfANPUU FCkcQAY4czkJaC0IiHfmxUWc13H56CD2vcATFpAkDQ8IgLbjdcL7DCos7X0+4QAqQlaC4cTfZ JXPuIvx6NZnbdIcoyLsC2rUR5vuiBhpp3XhZmxDqLZ8erCuThZnwMWi25M/y7AYwxZZLGAdB/ vC6fCbW X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161016_030849_959288_BCDB9924 X-CRM114-Status: UNSURE ( 8.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "kernel-janitors@vger.kernel.org" , LKML 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 From: Markus Elfring Date: Sun, 16 Oct 2016 12:00:26 +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/arm/mm/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/dump.c b/arch/arm/mm/dump.c index 9fe8e24..4bd8f9a 100644 --- a/arch/arm/mm/dump.c +++ b/arch/arm/mm/dump.c @@ -241,7 +241,7 @@ static void note_page(struct pg_state *st, unsigned long addr, unsigned level, u seq_printf(st->seq, "%9lu%c", delta, *unit); if (pg_level[st->level].bits) dump_prot(st, pg_level[st->level].bits, pg_level[st->level].num); - seq_printf(st->seq, "\n"); + seq_putc(st->seq, '\n'); } if (addr >= st->marker[1].start_address) {