From patchwork Thu May 4 17:00:30 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: 9712339 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 9AEF36020B for ; Thu, 4 May 2017 17:00:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D9212869F for ; Thu, 4 May 2017 17:00:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 823B4286D0; Thu, 4 May 2017 17:00:43 +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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 18AE9286CD for ; Thu, 4 May 2017 17:00:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F4506E598; Thu, 4 May 2017 17:00:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.17.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 532456E598; Thu, 4 May 2017 17:00:40 +0000 (UTC) Received: from [192.168.1.2] ([92.228.166.245]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Md4l4-1dNIln1mR0-00IFqe; Thu, 04 May 2017 19:00:33 +0200 Subject: [PATCH 8/9] drm/i915: Replace a seq_puts() call by seq_putc() in two functions From: SF Markus Elfring To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Chris Wilson , Daniel Vetter , David Airlie , Jani Nikula References: <39c8a155-cf89-1aa5-9ca6-4e9ccf3aa602@users.sourceforge.net> Message-ID: <4e4325ec-6b37-9006-1681-dc9a937d5b72@users.sourceforge.net> Date: Thu, 4 May 2017 19:00:30 +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: <39c8a155-cf89-1aa5-9ca6-4e9ccf3aa602@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:gxS3EujsmwYdtyuXRmL8Wb21r0GWwJ7mvMawZ9gzZf4sb8N3neK tR2FNVYPyYZ8LpNRSCBnebTDcu4ZE8kIfYuBjrWhLFhmiX4p4jrnJGciSjKmLtRKmlHZfdE XdCAeIzJwzA29M82FhxD9m4dmtYAJZpKKUa+TvOrvKUGKIqQROwPxwFw4T4/zUmBi+g6Rv+ CFoUJmBFlcDj+hOIsyydg== X-UI-Out-Filterresults: notjunk:1; V01:K0:sSpmVeeLpm0=:rvbfV6zJrckXW/fDVLuvk7 z4bFy+JiVmlUTK4mR4Ci0kYqokuOCUz52nOmXf8FLR/Bk2bfAqyBezpoKszzpImU+luAx26RA 2AaAAMmH24VWkF7gPkBpQy7yD5TxC/6czIMxJ+I4yscyEBU3tHmvnFkUxxrvtOHr+pYLKvIOg 0mf2221l/4L2yUCcdL4YXmsZUphXzsw49RsShCRuyITnPczgVbm+s3lf5wyAaYwE+m0L7e7J5 XsjLpGNZos2WE1zB8ne3dOaGywxnJcAfMO94eVKR9SF2C+18NCbZF3M1DPmJ/xMUtseRKf1xh 7NelNnJO9fJhlRi9XT9DEOpmppwnNZS+o4LewzL9dfFy2TZWYTmE52aNwYg2v18ZaO/6wSHlw wZ2YdjUetVmc4i2ne2ailjS5//enmwZKFOfWpW6XIAH+2jIKy/t8fqzbTxM+V0QOaXhBbctQ6 eWGJXgQBI1WdZFZA/+ovcgNviEjqlEVxcYlTJ1+Hr+bXX9rC3hzEs0D7fn87ZWGq+JbSnf1Ww z7djkAM6af83zTEyu6qnr24Ljbe3V1xDCRRNA4b+0IcCsDHxEM7yTwZVkK7ulL+ITGap7y59C n8+vslZmqpjh+Hy7glhBe0E3drmv2MaPZP/nh/dfAukipTA4vJNkNsIDGkwr+24D4sFBb/46j rQQrBfYwNdlhCyFMnFYqRpP8Pvnmh6lDkNZV5MwwJVFho7qea+c501a6j+7iIxrVFYo2izuGr dbqeme5XnrXVVd/nxU5QfwXo0lbfn7ZBrp8uqZkzA49YoEqXjPFW10VvuxGNUjzLxQPLGaefd f8gZysnRAaFaJ6ZCAr9b2zXg6uKlg== Cc: kernel-janitors@vger.kernel.org, LKML X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 4 May 2017 14:23:32 +0200 Two 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 --- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 2aa6b97fd22f..9f64dc3f2d05 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -1254,7 +1254,7 @@ static void gen8_dump_pdp(struct i915_hw_ppgtt *ppgtt, else seq_puts(m, " SCRATCH "); } - seq_puts(m, "\n"); + seq_putc(m, '\n'); } kunmap_atomic(pt_vaddr); } @@ -1437,7 +1437,7 @@ static void gen6_dump_ppgtt(struct i915_hw_ppgtt *ppgtt, struct seq_file *m) else seq_puts(m, " SCRATCH "); } - seq_puts(m, "\n"); + seq_putc(m, '\n'); } kunmap_atomic(pt_vaddr); }