]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/cma: use str_plural() in cma_declare_contiguous_multi()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 30 Jun 2025 13:23:18 +0000 (15:23 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:23 +0000 (16:38 -0700)
commit11f45931ccfd14f2f3ca3cf9cafd0e9317e9008a
tree0097b717b0d3d13e50f7e21680a5137e9fb4acad
parent1c0841140b5bd09f03e568d4d9341c874c396511
mm/cma: use str_plural() in cma_declare_contiguous_multi()

Use the string choice helper function str_plural() to simplify the code
and to fix the following Coccinelle/coccicheck warning reported by
string_choices.cocci:

  opportunity for str_plural(nr)

Link: https://lkml.kernel.org/r/20250630132318.41339-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Tested-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/cma.c