https://github.com/torvalds/linux
Revision 017fa3e89187848fd056af757769c9e66ac3e93d authored by Linus Torvalds on 28 July 2024, 20:50:01 UTC, committed by Linus Torvalds on 28 July 2024, 20:50:01 UTC
This simplifies the min_t() and max_t() macros by no longer making them
work in the context of a C constant expression.

That means that you can no longer use them for static initializers or
for array sizes in type definitions, but there were only a couple of
such uses, and all of them were converted (famous last words) to use
MIN_T/MAX_T instead.

Cc: David Laight <David.Laight@aculab.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4477b39
History
Tip revision: 017fa3e89187848fd056af757769c9e66ac3e93d authored by Linus Torvalds on 28 July 2024, 20:50:01 UTC
minmax: simplify and clarify min_t()/max_t() implementation
Tip revision: 017fa3e

back to top