From patchwork Mon May 8 09:14:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9715937 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 F031060364 for ; Mon, 8 May 2017 09:14:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D49BE22B39 for ; Mon, 8 May 2017 09:14:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C967E26E78; Mon, 8 May 2017 09:14:40 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8104722B39 for ; Mon, 8 May 2017 09:14:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752786AbdEHJOM (ORCPT ); Mon, 8 May 2017 05:14:12 -0400 Received: from mout.web.de ([217.72.192.78]:60550 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750797AbdEHJOL (ORCPT ); Mon, 8 May 2017 05:14:11 -0400 Received: from [192.168.1.3] ([77.182.37.117]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Mb90x-1dSM7S0wl1-00KeQM; Mon, 08 May 2017 11:14:05 +0200 Subject: [PATCH 4/4] dma-buf: Use seq_putc() in two functions From: SF Markus Elfring To: dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-media@vger.kernel.org, Gustavo Padovan , Sumit Semwal Cc: LKML , kernel-janitors@vger.kernel.org References: <3d972fa2-787a-d1f2-ff86-5c05494e00d3@users.sourceforge.net> Message-ID: <609254ac-000d-c87c-eabc-7ca8814daf5c@users.sourceforge.net> Date: Mon, 8 May 2017 11:14:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <3d972fa2-787a-d1f2-ff86-5c05494e00d3@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:p01hthIQIAbqxSIqMmCqjTj1lA3k1o4V10VHMsvZRwnySlbQPaI iKyn0SPp6/pCHy2R12a/RdC/llAiiAnahXXYJfUsrw/wII8i8SS/uiWKzB/jNMH9io1zIPe NetzKGr8yKG8O/4b47hFy6x7egIJLFhT/zGqrxXYJQPloUsjiKhWmAcpikEQi7lfnySn7kQ gG2efYg5hI7OXQHA4VypA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Yn5KM/ZzIak=:8Neh16+izAklwnEwd8My1M BqZpF7kDMrO2rfc+xeIONV41c8Cb0dDaH6TeVo/k4LxEZu5FRFd8e2gM0Fa5ThaF+sEGw3ZGu tl/er0EyNcv/JCpph5wz7qTU3G5p342GLbaBqoXyjGqSiLA1C8XLscQkLFQv7Y+la0yBMVEsD aUigA4wbk7ZxXDZlS7x+qr15j2CjYAQq7lAUXQx7jdvfx0Ks0D2u37ssKmXUrJLUB8m0SgZs2 b9dlApchS8H5fozg9k4Y2fUPgxUG6iPrSiC1C3oKI+zVOgLXK5rTuYjdHZ/cNjVOXFIq30L6W HkyMvf8QroroHIK4XOZdRTfRM4IpDgNSiWZi7v3y8dqNuGHJuF9fBP+J/0qKshs77+2Owr6Fg N+/AJfx1GbnAmH0KQMIWKWLM26nRQHFPncUnhLowX4D8iCd/gBIGvmmFAy5aASP3yhz2zplAb bPYuE3ZM5fwnIwOa+p4VSrvomOTJHQ4QAWFWpUHtZarhusAFbOnSrIbAijpFPKkXgymN3e4c6 RQVNaf/c3oEA0DlGFBDtUzjYdffJBk3b+x9hrEqDWGIjmjb5GhL8lsU+VZ2x04RD8MtzOSC6Q TQdL4eBA1ajZyMk1iyz9C1XGz909IrKbHvLH4ywxZ6OT70yte27TKjw73kSmvtK/UAT5GQOzI 0G/YzfzHXnIv090501JDX9j1lx3CBdyYA+jsR5AIHDonkivl0TLGRyPm91bSE6nInUNC9cDbZ mmzvSZcEEmZ54teHYTjT+vBpOVJRmMQpbBV5/hpYfW1T+9X2DuzoA8JkHWEINC/8fN9EGkbDB y/AcNLq Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 10:55:42 +0200 Three single characters (line breaks) 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 Reviewed-by: Gustavo Padovan --- drivers/dma-buf/sync_debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma-buf/sync_debug.c b/drivers/dma-buf/sync_debug.c index c769dc653b34..a0d780ab68c3 100644 --- a/drivers/dma-buf/sync_debug.c +++ b/drivers/dma-buf/sync_debug.c @@ -110,7 +110,7 @@ static void sync_print_fence(struct seq_file *s, } } - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj) @@ -161,7 +161,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) sync_timeline_list); sync_print_obj(s, obj); - seq_puts(s, "\n"); + seq_putc(s, '\n'); } spin_unlock_irqrestore(&sync_timeline_list_lock, flags); @@ -173,7 +173,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused) container_of(pos, struct sync_file, sync_file_list); sync_print_sync_file(s, sync_file); - seq_puts(s, "\n"); + seq_putc(s, '\n'); } spin_unlock_irqrestore(&sync_file_list_lock, flags); return 0;