Linus Torvalds: “The old three-argument form is still available as “min_t()/max_t()”, and
pretty much all old three-argument users have just been moved over to this
one. For all the people who hate the three-argument version, if you send
patches to turn things into the two-argument one, I’ll certainly apply
them. I only ask that you verify that you don’t get any warnings in the
process.”
Linux 2.4.10-pre8
From: Linus Torvalds
To: Kernel Mailing List
Date: Mon, 10 Sep 2001 17:49:36 -0700 (PDT)
The most noticeable thing here is how the three-argument form of
"min()/max()" are a thing of the past, and instead we have a regular
two-argument form that is _really_ anal about type-checking. It will warn
if the two arguments are of different types.
The old three-argument form is still available as "min_t()/max_t()", and
pretty much all old three-argument users have just been moved over to this
one. For all the people who hate the three-argument version, if you send
patches to turn things into the two-argument one, I'll certainly apply
them. I only ask that you verify that you don't get any warnings in the
process..
(And the number of type clashes was quite surprising. A lot of the users
of min/max I looked at looked rather suspicious and definitely did NOT
have the same types or even signs).
Other minor changes too.
Linus
-----
pre8:
- Christoph Hellwig: clean up personality handling a bit
- Robert Love: update sysctl/vm documentation
- make the three-argument (that everybody hates) "min()" be "min_t()",
and introduce a type-anal "min()" that complains about arguments of
different types.