The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=7ea6a61fb3fad2f729be106c2d6ad637b200c530
commit 7ea6a61fb3fad2f729be106c2d6ad637b200c530 Author: Bjoern A. Zeeb <[email protected]> AuthorDate: 2026-01-20 22:43:19 +0000 Commit: Bjoern A. Zeeb <[email protected]> CommitDate: 2026-02-26 22:59:48 +0000 LinuxKPI: add umin() Add a version of umin() simply using MIN() assuming that the Linux upstream code properly check that the arguments are unsigned, etc. Sponsored by: The FreeBSD Foundation Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D54807 (cherry picked from commit 44d1153ddaf8f961520a8f33222b65170196b90e) --- sys/compat/linuxkpi/common/include/linux/minmax.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/minmax.h b/sys/compat/linuxkpi/common/include/linux/minmax.h index d48958f0899f..fb8eb6f704b4 100644 --- a/sys/compat/linuxkpi/common/include/linux/minmax.h +++ b/sys/compat/linuxkpi/common/include/linux/minmax.h @@ -71,4 +71,7 @@ b = _swap_tmp; \ } while (0) +/* XXX would have to make sure both are unsigned. */ +#define umin(x, y) MIN(x, y) + #endif /* _LINUXKPI_LINUX_MINMAX_H_ */
