[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VdHNgwLuuwZJZXiN97dXdw2cVZN7+VngjrdyFPv+CZPgg@mail.gmail.com>
Date: Tue, 29 Apr 2025 23:26:17 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Thomas Richard <thomas.richard@...tlin.com>
Cc: Linus Walleij <linus.walleij@...aro.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>, Bartosz Golaszewski <brgl@...ev.pl>,
Geert Uytterhoeven <geert+renesas@...der.be>, Kees Cook <kees@...nel.org>,
Andy Shevchenko <andy@...nel.org>, linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
thomas.petazzoni@...tlin.com, DanieleCleri@...on.eu, GaryWang@...on.com.tw,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v4 11/12] lib/string_choices: Add str_input_output() helper
On Tue, Apr 29, 2025 at 5:08 PM Thomas Richard
<thomas.richard@...tlin.com> wrote:
>
> Add str_input_output() helper to return 'input' or 'output' string literal.
> Also add the inversed variant str_output_input().
...
> +static inline const char *str_input_output(bool v)
> +{
> + return v ? "input" : "output";
> +}
> +#define str_output_input str_input_output(!(v))
Missing argument in the definition of a new macro.
With that being addressed,
Reviewed-by: Andy Shevchenko <andy@...nel.org>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists