HomeFreeBSD

<linux/overflow.h>: Don't use __has_builtin().

Description

<linux/overflow.h>: Don't use __has_builtin().

GCC only added support for __has_builtin in GCC 10. However, all
supported versions of GCC and clang include these builtins so just use
them unconditionally.

This fixes the build with GCC 9.

Reviewed by: manu, hselasky, imp
Differential Revision: https://reviews.freebsd.org/D31942

Details

Provenance
jhbAuthored on Sep 15 2021, 4:03 PM
Reviewer
manu
Differential Revision
D31942: <linux/overflow.h>: Don't use __has_builtin().
Parents
R10:b14cd3a8339e: efitable: Don't pass NULL as a format string to xo_err().
Branches
Unknown
Tags
Unknown