Only add check_add_overflow and check_mul_overflow as those are the only
two needed function by DRM v5.3.
Since both gcc and clang have builtin to do this check, use them directly.
Sponsored-by: The FreeBSD Foundation
Differential D25015
linuxkpi: Add overflow.h manu on May 26 2020, 10:57 AM. Authored by Tags None Referenced Files
Subscribers
Details Only add check_add_overflow and check_mul_overflow as those are the only Sponsored-by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions You might want to ifdef the use of __builting for compilers not supporting it like done in sys/cdefs.h --- OK ?
|