From patchwork Sun Jul 14 18:06:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Markus Elfring X-Patchwork-Id: 13732783 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65790C3DA42 for ; Sun, 14 Jul 2024 18:06:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 702F66B007B; Sun, 14 Jul 2024 14:06:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6B3536B0083; Sun, 14 Jul 2024 14:06:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57AFC6B0085; Sun, 14 Jul 2024 14:06:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 356F76B007B for ; Sun, 14 Jul 2024 14:06:33 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9FFA2A4D79 for ; Sun, 14 Jul 2024 18:06:32 +0000 (UTC) X-FDA: 82339138224.09.0801B27 Received: from mout.web.de (mout.web.de [212.227.15.3]) by imf03.hostedemail.com (Postfix) with ESMTP id A60DB20021 for ; Sun, 14 Jul 2024 18:06:30 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=web.de header.s=s29768273 header.b=vPPm29IL; dmarc=pass (policy=quarantine) header.from=web.de; spf=pass (imf03.hostedemail.com: domain of Markus.Elfring@web.de designates 212.227.15.3 as permitted sender) smtp.mailfrom=Markus.Elfring@web.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720980363; a=rsa-sha256; cv=none; b=QR8mZdUjSxkTSfEDm9+LBp1D3BzqCn2uU+4qNTe/jzCfRUe++M32HhFqwGGUxJlrQfApuv +8us1RoagbD5rdPf9eaQZirS0GH9194gB16uwvQpFlvTbFHKrnX1bfw2AKAlBxBRgm3sVo XNwmRKndQTQU0FEawjdPVsfIIRrE8Yo= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=web.de header.s=s29768273 header.b=vPPm29IL; dmarc=pass (policy=quarantine) header.from=web.de; spf=pass (imf03.hostedemail.com: domain of Markus.Elfring@web.de designates 212.227.15.3 as permitted sender) smtp.mailfrom=Markus.Elfring@web.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720980363; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=IdpJg9NKmezJIapsYz2o+5Fvqpz9qETaAmE4wLDqsiA=; b=nls940iu7OQr6J/KAYNBfVGBzGPXoUA80VB9u2ioYFfdBgxwQ0BfpA36cjZ6LNX6LbtZv1 lWw1faEJaNjPH2WuaReCWmYY3P3nJHLBDK7ueysSNXw5dealNiLPnMhN6EWCfcbuCV2RzK zrTtATNw7WNY902esLIMiiJO+iG9gz0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1720980383; x=1721585183; i=markus.elfring@web.de; bh=IdpJg9NKmezJIapsYz2o+5Fvqpz9qETaAmE4wLDqsiA=; 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=vPPm29ILUPuLxEqBV5qC+6pjXBkH02YFzPaFPb17ox5SruYU4GAuZQh2nTn2rTzH T4XJfhj68TufQFbt7I+VXHzhR/Jcf63vRxW4oTvLJ6p2sObh+j7ZDh81w7JktoFzy 4YKZO8ZwoiwLSwXZCJSx8+vhsoBLKrzd/kv6CD/urnc8Y1VX91ATKN7lbR3aVWg1D GaM51qHHeuAKeM7QcwJsYI96LB9tLmLu5FR+SCuatIKf/uxuQtoIIwhaWm2TQtegg raco9ioV4dD+P1lGVxJA+rYeA1Z78MOKc0WGr7Bsfwo13V/Hx//ofAkePpJJsyQj7 1wKgpiRrEM+CNoolRw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.82.95]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mv3US-1sBfFn3ENE-00sEqx; Sun, 14 Jul 2024 20:06:23 +0200 Message-ID: <13c34802-c4f5-4e21-b675-4422680a7a66@web.de> Date: Sun, 14 Jul 2024 20:06:22 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: linux-mm@kvack.org, kernel-janitors@vger.kernel.org, Andrew Morton , Christoph Lameter , David Rientjes , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Joonsoo Kim , Pekka Enberg , Roman Gushchin , Vlastimil Babka Content-Language: en-GB Cc: LKML From: Markus Elfring Subject: [PATCH] mm/slub: Use seq_putc() in slab_debugfs_show() X-Provags-ID: V03:K1:rqcv4mAWZlITSl40Y4+8GTzosv7+akT6BsQ4hgg7M44twu4+W7z ztPo8Sw1KHw8QjsS0z1TrEFaS+oQ9UQa3Knt9m7bOxe4lwR97nslQlXF/rsgGATj8yt0I5D XxK/fmgJw4Kp2r/OrHmTHVRr8HC6pc96EXrXy7UVm6oc1FaEdGjIIvuIxhJS/y+zJhq+rSn ZOvM75SIfJm6k8pn+8urw== UI-OutboundReport: notjunk:1;M01:P0:/n8ZbvbyyN4=;r8emOt9AUcTNJeXBsRhd/FjVZ3l Fg226Z/bBR3YRHaABAFmTcTUMRgh6g/AQYTKyaYNdMbsOPcAdZ+Zst0jVi5CDPcGzJrPYgpSa N8VyWSwYgCmApRq8COISQJFOdqy9axJo/vUgxBRwsUApp7MC4MIxtBln1rph7jBFQWrhKWe7F a4yR3UInOl6hCEGcUm1mmhrCqmmz8yteBv8Wja3mJGSjuYL3lshcnH7AioZ5QremFkrKmgRbH qGSvnXlSxD4U27zSUltY5lQYOEkgHv+WXNTKsJ6s/gtJ0RfolS+BIsTxC7JzKLdiNWx5Z+rhB LZxsCJQNPirXNy43KGK42dSLsCnLiA/Z8tggqMEOzS27ijseb+gsS7zlfW9H/fqA1lIZ2aF33 /di1geNfampkkPubniNmyN8jlVWwsrwN5zP/l8wdauVIH6Ow/gd6Lj/aIFXmKPYFJYpy3Y2kW hmI+ldtOqDP8DXhKV1RBZ2jYlRiwqHQnh9MrAj3CI/1IC/f+oC5XBJAP5TYYMIMeZsZdPlQSJ yqACCmkI+TcgaKblmE7PmwtgkMxFP7cPAiF6IE7MQ9apqD5B2KG944n549QMpslHFrAXjZkja Wxb/miRe2MhLJaDJbQi5tpQAnS6jXa1jaT/q+GrmE4eVFbgPc705wj/pvtmjZrsBMag3DP04Z vZ32HGug2nZx5b2K5tUciqQsR9lSb6V4CQD3PgAdF5B7RQLfvlFVtbPvE6AxsnCF6PDRfzQvO RETmIjibUuXWEDzC0VAPtMWfoxvFxVAi0jsB8i6kZ6LDGqRWjC90e8NctPpb6aSHHLTmfBoqp f15QQQtUzshTIPSrK64pcd8w== X-Rspamd-Queue-Id: A60DB20021 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: wmy8bguo7eaq1xatab7sgsf8dn193njx X-HE-Tag: 1720980390-74995 X-HE-Meta: U2FsdGVkX1++4NwiDinABTmHKgMauOdDdGEfIfjf6nZjxJoHLOEDm/vYGQ9H/FRLcTJC+rxyfYOHxv2D7JgL4O8c5FSYeqfctMhvaWMozwaK/JmbRPXsypcoRPZ/02IXob8y2E4IrFMfX42i2pNswaTVuRGTfOSazSbOzl89iwE6zXplUhroUpOpJCHLE5E0fLrEWLU8w/6jEtgeyWbCFa42A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Eg5OTjYXJ5u4UzMTskBsvZjzqEpiForlZKm9L3A1bmXau2PTo4VG2+PQBR18/oBByR1wT+KwUxUKNH5ImpL1vSq0At38Zu05YbGkTkMt98/mSqT7ZkRA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Markus Elfring Date: Sun, 14 Jul 2024 19:55:59 +0200 Single 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 --- mm/slub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.45.2 diff --git a/mm/slub.c b/mm/slub.c index 3520acaf9afa..49f567968f81 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -7112,13 +7112,13 @@ static int slab_debugfs_show(struct seq_file *seq, void *v) handle = READ_ONCE(l->handle); if (handle) { nr_entries = stack_depot_fetch(handle, &entries); - seq_puts(seq, "\n"); + seq_putc(seq, '\n'); for (j = 0; j < nr_entries; j++) seq_printf(seq, " %pS\n", (void *)entries[j]); } } #endif - seq_puts(seq, "\n"); + seq_putc(seq, '\n'); } if (!idx && !t->count)