Re: [PATCH next 09/11] tree-wide: minmax: Replace all the uses of max() for array sizes with max_const()
From: David Sterba
Date: Mon Jan 29 2024 - 02:57:15 EST
On Sun, Jan 28, 2024 at 07:34:23PM +0000, David Laight wrote:
> These are the only uses of max() that require a constant value
> from constant parameters.
> There don't seem to be any similar uses of min().
>
> Replacing the max() by max_const() lets min()/max() be simplified
> speeding up compilation.
>
> max_const() will convert enums to int (or unsigned int) so that the
> casts added by max_t() are no longer needed.
>
> Signed-off-by: David Laight <david.laight@xxxxxxxxxx>
> ---
For
> fs/btrfs/tree-checker.c | 2 +-
Acked-by: David Sterba <dsterba@xxxxxxxx>