]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement the array_size() function in the LinuxKPI. This function
authorHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 10 Jul 2020 11:27:54 +0000 (11:27 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Fri, 10 Jul 2020 11:27:54 +0000 (11:27 +0000)
commitd2890eeea1c67d791d4c1ed210c8fff4c7d2c040
tree74f04db9476e367b056b068a53d265f598182d24
parent6ddc8438321bfb2ac87267cc484c186961628e86
Implement the array_size() function in the LinuxKPI. This function
basically multiplies its two arguments and returns SIZE_MAX if the
result overflows the size_t type.  Else the product of the two
arguments is returned.

Bump the FreeBSD_version to mitigate issues with existing
implementation of array_size() in drm-devel-kmod.

Discussed with: manu@
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/include/linux/overflow.h
sys/sys/param.h