HomeFreeBSD

MFC r361549:

Description

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

Details

Provenance
hselaskyAuthored on
Differential Revision
D25015: linuxkpi: Add overflow.h
Parents
rS363788: MFC 363621: sh(1): print a newline when ^D quits sh
Branches
Unknown
Tags
Unknown