Re: [PATCH 03/10] lib/list_sort: Switch to __nonnull_args() macro
From: Andy Shevchenko
Date: Wed Oct 28 2026 - 05:49:13 EST
On Wed, Oct 28, 2026 at 10:20 AM Dmitry Ilvokhin <d@xxxxxxxxxxxx> wrote:
>
> Commit 22302af28d3f ("cleanup: Annotate guard constructors with
> nonnull") added the macro __nonnull_args() to wrap raw compiler
> attribute.
>
> Replace __attribute__((nonnull)) with __nonnull_args() to
> standardize nonnull attribute usage across the tree and keep the
> attribute's quirks in one place rather than open-coded at every call
> site.
>
> Add spaces after the commas in the __nonnull_args() argument list to
> follow the usual coding style (according to checkpatch).
Reviewed-by: Andy Shevchenko <andy@xxxxxxxxxx>
--
With Best Regards,
Andy Shevchenko