From patchwork Sat Jul 13 11:30:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Elfring X-Patchwork-Id: 13732398 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C693C3DA45 for ; Sat, 13 Jul 2024 11:30:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7B8F810E00A; Sat, 13 Jul 2024 11:30:58 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; secure) header.d=web.de header.i=markus.elfring@web.de header.b="tGsSnTmv"; dkim-atps=neutral Received: from mout.web.de (mout.web.de [212.227.17.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9394710E00A for ; Sat, 13 Jul 2024 11:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1720870238; x=1721475038; i=markus.elfring@web.de; bh=yYStihca3IYwKi+Yeorx3KjJ/JDKDHTh2foEdguZtEk=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:From: Subject:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=tGsSnTmvvE6xMIvyeYh6lFon8yhft9MxaZ4Dh/DECx8uK51/jNGmrwNc9P770PbL XyvWkCb4SxgKhmo9pIZDy5lBKkY7iTegBMrNwXFMCQ3okjolFlQ1kDdxEe2DidJkE euF5A4qUJ+pPkMw4Ak19OzC31HrzL8LqDLHGzNm52xqBbqK5RIjxpoDa8AtpBLQ5Z aDwfsVxnmsMj/AjRGKoofjBXwyokbs9G6HllABojLOGq91AYktnROE0Zx67xs1v32 YqRWjzVUjNgz3WwqE4+Yq7D+n9M9Ti0qUgw7NaDX45uAri2zi+IVaDRs+MDifET/1 LpjO/ZzUrpIdY1Hsew== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.82.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MBSB3-1seOGo3ucp-00HCct; Sat, 13 Jul 2024 13:30:38 +0200 Message-ID: <6b952625-614f-414c-80aa-ea51027a044c@web.de> Date: Sat, 13 Jul 2024 13:30:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, =?utf-8?q?Christian_K=C3=B6nig?= , Daniel Vetter , David Airlie , Huang Rui , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Content-Language: en-GB Cc: LKML From: Markus Elfring Subject: [PATCH] drm/ttm: Use seq_putc() in two functions X-Provags-ID: V03:K1:MLl4JbXy3sVYHpWZibGJ8ChC0B03gzqpyVJQOmkXaRaeG7T0UOc puCT7y1wYZU4A6tVM/+zrF+ZnkBvtVuQjXP/za18cKBgYWs9Ro00eYN7A3ZzOw6hMSHkKdS OKsX//e2ZBaZBWtMMUd1IA9eG+CrjdACTL8WdzX42qfnSdKYISDe7WNn7XrM+P0anawiZb+ QAJoC1Y9HgVf5phyPTXDA== UI-OutboundReport: notjunk:1;M01:P0:8tcJ/Qg6fbg=;t6IAKWkCVwd8JWouP1A1PGRjWBo KNfA0R0CRgA9b/+x3BsZxI1VIg6NIttR10wlpwirCPFJXyEoOn7vRl/He096+MueyyHTHfsMV 7rnJMsotlNXxNkG8HtUeUrle3m/IqqduWnOLn9yOOqyg5qlk1Q+L+8lyILcheZxLwuxGmvltF HMNTFJwPctih3REl8GWAmYVBwX6CNsuPS1krNBZ3plkICYe315Y6jyjakcbgbjwNaitRzyRK2 U88lZN3j5+KnzBtViPKJHsbXDL3A9ve6ePZ55wN25XapcoVLhpkcrJYqduQZzP09Y/bzFIO7g uizeFO7btUiSF416PlqR1nClUBwFvUNnHEHNYSq+ERL4vNDHfrVBVS2YWIVkt873FkCtnM7hw ypAeIR9wrnMJ78/Nqjrz/PyXaioZ/9NvlnvO/MKtSz/MEnFUlEWmnyXSkINLIrUiqnxPfTOUJ dVV0YcrAvvEQJ6MIHHl3csy7k8yspZhcf2N+vA0HoGh2LMwWdi5Y7iWLmwhGdhn/s5MU6dbAl 7kZQzXtQ3WE4CgJcikzvfsN1c6pb3/RQ5FX50mpKEE1iml+4hE4SU7r/9d7TaZHy3z0KBueVd qip5IjdQ3cYbezj8Pc4vPn/380HfU4xKcsLE8zKrN8xIfTzvZtIrOvbc+8hTQPoLDA5VK2664 Acs3AF/SkiiQR2ww5Lqq378GMhvUt3RrPHm1WH4N44S3kj4coKTmRwxgyyjSWETz1m/0nutV6 szXHSqIyg7AdNoSrBpuu4B3mM0y4TKu47spiOFqiZkDbXKtzOA4L8B8YPnKNIa1qCJivvEvt9 7gj3uAQK2vj7S3wp8lQkh0uw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 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" From: Markus Elfring Date: Sat, 13 Jul 2024 13:23:06 +0200 Single characters (line breaks) should be put into a sequence. Thus use the corresponding function “seq_putc”. This issue was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/ttm/ttm_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.45.2 diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c index 6e1fd6985ffc..451e6155432f 100644 --- a/drivers/gpu/drm/ttm/ttm_pool.c +++ b/drivers/gpu/drm/ttm/ttm_pool.c @@ -676,7 +676,7 @@ static void ttm_pool_debugfs_header(struct seq_file *m) seq_puts(m, "\t "); for (i = 0; i < NR_PAGE_ORDERS; ++i) seq_printf(m, " ---%2u---", i); - seq_puts(m, "\n"); + seq_putc(m, '\n'); } /* Dump information about the different pool types */ @@ -687,7 +687,7 @@ static void ttm_pool_debugfs_orders(struct ttm_pool_type *pt, for (i = 0; i < NR_PAGE_ORDERS; ++i) seq_printf(m, " %8u", ttm_pool_type_count(&pt[i])); - seq_puts(m, "\n"); + seq_putc(m, '\n'); } /* Dump the total amount of allocated pages */