* [PATCH] mm/slub: Use seq_putc() in slab_debugfs_show()
@ 2024-07-14 18:06 Markus Elfring
0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2024-07-14 18:06 UTC (permalink / raw)
To: linux-mm, kernel-janitors, Andrew Morton, Christoph Lameter,
David Rientjes, Hyeonggon Yoo, Joonsoo Kim, Pekka Enberg,
Roman Gushchin, Vlastimil Babka
Cc: LKML
From: Markus Elfring <elfring@users.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@users.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-14 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-14 18:06 [PATCH] mm/slub: Use seq_putc() in slab_debugfs_show() Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox