lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <13c34802-c4f5-4e21-b675-4422680a7a66@web.de>
Date: Sun, 14 Jul 2024 20:06:22 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-mm@...ck.org, kernel-janitors@...r.kernel.org,
 Andrew Morton <akpm@...ux-foundation.org>, Christoph Lameter <cl@...ux.com>,
 David Rientjes <rientjes@...gle.com>, Hyeonggon Yoo <42.hyeyoo@...il.com>,
 Joonsoo Kim <iamjoonsoo.kim@....com>, Pekka Enberg <penberg@...nel.org>,
 Roman Gushchin <roman.gushchin@...ux.dev>, Vlastimil Babka <vbabka@...e.cz>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] mm/slub: Use seq_putc() in slab_debugfs_show()

From: Markus Elfring <elfring@...rs.sourceforge.net>
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 <elfring@...rs.sourceforge.net>
---
 mm/slub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)
--
2.45.2


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ