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
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
io_uring
ipc
kernel
lib
mm
net
rust
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 21.7 KB
.cocciconfig -rw-r--r-- 59 bytes
.editorconfig -rw-r--r-- 575 bytes
.get_maintainer.ignore -rw-r--r-- 194 bytes
.gitattributes -rw-r--r-- 105 bytes
.gitignore -rw-r--r-- 2.1 KB
.mailmap -rw-r--r-- 40.2 KB
.rustfmt.toml -rw-r--r-- 369 bytes
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 102.5 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 754.9 KB
Makefile -rw-r--r-- 66.6 KB
README -rw-r--r-- 726 bytes

README

back to top