Use -Werror for all kernel configure tests.
[zfs.git] / config / kernel-bio-empty-barrier.m4
1 dnl #
2 dnl # 2.6.24 API change
3 dnl # Empty write barriers are now supported and we should use them.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_BIO_EMPTY_BARRIER], [
6         AC_MSG_CHECKING([whether bio_empty_barrier() is defined])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/bio.h>
9         ],[
10                 struct bio bio;
11                 (void)bio_empty_barrier(&bio);
12         ],[
13                 AC_MSG_RESULT(yes)
14                 AC_DEFINE(HAVE_BIO_EMPTY_BARRIER, 1,
15                           [bio_empy_barrier() is defined])
16         ],[
17                 AC_MSG_RESULT(no)
18         ])
19 ])