lib/string_choices: Add str_plural() helper
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 14 Feb 2024 16:50:15 +0000 (17:50 +0100)
committerKees Cook <keescook@chromium.org>
Thu, 29 Feb 2024 21:38:01 +0000 (13:38 -0800)
commit9ca5facd0400f610f3f7f71aeb7fc0b949a48c67
tree63383d5e3e84cfa66c550985ed1e178ad61edcb0
parent08d45ee84bb2650e237e150caca87cc4ded9b3e2
lib/string_choices: Add str_plural() helper

Add str_plural() helper to replace existing open implementations
used by many drivers and help improve future user facing messages.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20240214165015.1656-1-michal.wajdeczko@intel.com
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/string_choices.h