From 1579dcbc9176d3875f3ce8926076e46a87d8e8ed Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Wed, 21 Jun 2017 23:47:54 +0300 Subject: [PATCH] OpenZFS 8416 - abd.h is not C++ friendly Authored by: Andriy Gapon Reviewed by: Igor Kozhukhov Reviewed by: Dan Kimmel Reviewed by: Alek Pinchuk Approved by: Robert Mustacchi Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Ported-by: Giuseppe Di Natale OpenZFS-issue: https://www.illumos.org/issues/8416 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/589c189 Closes #6288 --- include/sys/abd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sys/abd.h b/include/sys/abd.h index 59b679491..cd7105013 100644 --- a/include/sys/abd.h +++ b/include/sys/abd.h @@ -73,7 +73,7 @@ extern int zfs_abd_scatter_enabled; static inline boolean_t abd_is_linear(abd_t *abd) { - return ((abd->abd_flags & ABD_FLAG_LINEAR) != 0); + return ((abd->abd_flags & ABD_FLAG_LINEAR) != 0 ? B_TRUE : B_FALSE); } /*