]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Prefer using the MIN() function macro over the min() inline function
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 7 Dec 2020 09:48:06 +0000 (09:48 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 7 Dec 2020 09:48:06 +0000 (09:48 +0000)
commita399cf139b5aedc5c7ce8811ea2f34268da7e8bd
tree141e14b22140cc757720253ae4d787e260ce5ee1
parentea37efb75474613d226ad1c4e662f3d84f441186
Prefer using the MIN() function macro over the min() inline function
in the LinuxKPI. Linux defines min() to be a macro, while in FreeBSD
min() is a static inline function clamping its arguments to
"unsigned int".

MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
sys/compat/linuxkpi/common/include/linux/bitops.h
sys/compat/linuxkpi/common/include/linux/scatterlist.h