]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r361549:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 3 Aug 2020 09:11:10 +0000 (09:11 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 3 Aug 2020 09:11:10 +0000 (09:11 +0000)
commit0493a1023d4bd9a1be23022b7c030caca10c3358
treef30b264faf2e91d8122331a304f1d4fd012915e3
parentd919eeac2ba6590ba46ebad99770b68add85a0bd
MFC r361549:
Add overflow.h to the LinuxKPI.

Only add check_add_overflow and check_mul_overflow as those are the only
two needed function by DRM v5.3.
Both gcc and clang have builtin to do this check so use them directly
but throw an error if the compiler/code checker doesn't support this builtin.

Sponsored-by: The FreeBSD Foundation
Reviewed by: hselsasky
Differential Revision: https://reviews.freebsd.org/D25015
sys/compat/linuxkpi/common/include/linux/overflow.h [new file with mode: 0644]