HomeFreeBSD

Make inline ABD predicates compatible with C++

Description

Make inline ABD predicates compatible with C++

FreeBSD's zfsd fails to build after e2af2acce3 due to strict type
checking errors from the implicit conversion between bool and boolean_t
in the inline predicate definitions in abd.h.

Use conditionals to return the correct value type from these functions.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #11592

Details

Provenance
freqlabsAuthored on Feb 15 2021, 6:15 PM
GitHub <noreply@github.com>Committed on Feb 15 2021, 6:15 PM
Parents
rGc1c31a835a7c: Linux 5.11 compat: META
Branches
Unknown
Tags
Unknown