Re: [PATCH next v4 0/5] minmax: Relax type checks in min() and max().

From: Andrew Morton
Date: Wed Sep 27 2023 - 13:30:19 EST


On Mon, 18 Sep 2023 08:14:40 +0000 David Laight <David.Laight@xxxxxxxxxx> wrote:

> A quick grep shows 5734 min() and 4597 min_t().
> Having the casts on almost half of the calls shows that something
> is clearly wrong.

My preferred approach to fixing min() warnings is "the types are wrong".
But often getting the types better is hard.

Is there a plan afoot to go around existing code doing some
min_t()->min() conversions?