[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202502281143.149423E53@keescook>
Date: Fri, 28 Feb 2025 11:44:51 -0800
From: Kees Cook <kees@...nel.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
Cc: Andy Shevchenko <andy@...nel.org>, linux-hardening@...r.kernel.org
Subject: Re: [PATCH 00/10] lib/string_choices: Add new helpers
On Wed, Feb 26, 2025 at 05:34:48AM +0000, Kuninori Morimoto wrote:
> I would like to use string_choices helper to cleanup the code, but it missing
> some of well used string pair in kernel. This patch-set adds it.
Do you have some Coccinelle scripts or other patches that show the use
of these helpers? We tend to avoid adding new helpers to the kernel
unless there are active uses of them.
-Kees
>
> Kuninori Morimoto (10):
> lib/string_choices: Add str_tx_rx() helper
> lib/string_choices: Add str_enabling_disabling() helper
> lib/string_choices: Add str_in_out() helper
> lib/string_choices: Add str_input_output() helper
> lib/string_choices: Add str_Y_N() helper
> lib/string_choices: Add str_pass_fail() helper
> lib/string_choices: Add str_to_from() helper
> lib/string_choices: Add str_level_edge() helper
> lib/string_choices: Add str_kernel_user() helper
> lib/string_choices: Add str_attach_detach() helper
>
> include/linux/string_choices.h | 61 ++++++++++++++++++++++++++++++++++
> 1 file changed, 61 insertions(+)
>
> --
> 2.43.0
>
--
Kees Cook
Powered by blists - more mailing lists