Skip to content

Commit

Permalink
Fix RHEL 7.4 bio_set_op_attrs build error
Browse files Browse the repository at this point in the history
On RHEL 7.4, include/linux/bio.h now includes a macro for
bio_set_op_attrs that conflicts with the ifndef in ZFS
include/linux/blkdev_compat.h.  This patch fixes the build.

Signed-off-by: Tony Hutter <[email protected]>
  • Loading branch information
tonyhutter committed Jun 26, 2017
1 parent d9ad3fe commit d32a865
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/kernel-bio-op.m4
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ AC_DEFUN([ZFS_AC_KERNEL_BIO_BI_OPF], [
AC_DEFUN([ZFS_AC_KERNEL_HAVE_BIO_SET_OP_ATTRS], [
AC_MSG_CHECKING([whether bio_set_op_attrs is available])
ZFS_LINUX_TRY_COMPILE([
#include <linux/bio.h>
#include <linux/blk_types.h>
],[
struct bio *bio __attribute__ ((unused)) = NULL;
Expand Down

0 comments on commit d32a865

Please sign in to comment.