[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240129075412.GU31555@twin.jikos.cz>
Date: Mon, 29 Jan 2024 08:54:12 +0100
From: David Sterba <dsterba@...e.cz>
To: David Laight <David.Laight@...LAB.COM>
Cc: "'linux-kernel@...r.kernel.org'" <linux-kernel@...r.kernel.org>,
'Linus Torvalds' <torvalds@...ux-foundation.org>,
'Netdev' <netdev@...r.kernel.org>,
"'dri-devel@...ts.freedesktop.org'" <dri-devel@...ts.freedesktop.org>,
'Andy Shevchenko' <andriy.shevchenko@...ux.intel.com>,
'Andrew Morton' <akpm@...ux-foundation.org>,
"'Matthew Wilcox (Oracle)'" <willy@...radead.org>,
'Christoph Hellwig' <hch@...radead.org>,
'Dan Carpenter' <dan.carpenter@...aro.org>,
'Linus Walleij' <linus.walleij@...aro.org>,
"'David S . Miller'" <davem@...emloft.net>,
"'linux-btrfs@...r.kernel.org'" <linux-btrfs@...r.kernel.org>,
'Jens Axboe' <axboe@...nel.dk>
Subject: Re: [PATCH next 09/11] tree-wide: minmax: Replace all the uses of
max() for array sizes with max_const()
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@...lab.com>
> ---
For
> fs/btrfs/tree-checker.c | 2 +-
Acked-by: David Sterba <dsterba@...e.com>
Powered by blists - more mailing lists