mm/hugetlb: use str_plural() in report_hugepages()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 30 Jun 2025 17:18:26 +0000 (19:18 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 13 Jul 2025 23:38:21 +0000 (16:38 -0700)
commit2a83529026c23fc7d8bbf544c6c8d52df7cb9d93
tree538b44de1eb79a926941ffb259999c22b71cd2c8
parentb112a4e0a1af5745f987a1692553bf02c890babc
mm/hugetlb: use str_plural() in report_hugepages()

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(nrinvalid)

Link: https://lkml.kernel.org/r/20250630171826.114008-2-thorsten.blum@linux.dev
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c