]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-bio-end-io-t-args.m4
Remove COPYING
[mirror_zfs.git] / config / kernel-bio-end-io-t-args.m4
CommitLineData
c9c0d073
BB
1dnl #
2dnl # 2.6.24 API change
3dnl # Size argument dropped from bio_endio and bi_end_io, because the
4dnl # bi_end_io is only called once now when the request is complete.
5dnl # There is no longer any need for a size argument. This also means
6dnl # that partial IO's are no longer possibe and the end_io callback
7dnl # should not check bi->bi_size. Finally, the return type was updated
8dnl # to void.
9dnl #
10AC_DEFUN([ZFS_AC_KERNEL_BIO_END_IO_T_ARGS], [
11 AC_MSG_CHECKING([whether bio_end_io_t wants 2 args])
c9c0d073
BB
12 ZFS_LINUX_TRY_COMPILE([
13 #include <linux/bio.h>
c9c0d073 14
c38367c7
RY
15 void wanted_end_io(struct bio *bio, int x) { return; }
16
17 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
18 ],[
c9c0d073
BB
19 ],[
20 AC_MSG_RESULT(yes)
21 AC_DEFINE(HAVE_2ARGS_BIO_END_IO_T, 1,
22 [bio_end_io_t wants 2 args])
23 ],[
24 AC_MSG_RESULT(no)
25 ])
c9c0d073 26])