]>
Commit | Line | Data |
---|---|---|
1 | dnl # | |
2 | dnl # 2.6.22 API change | |
3 | dnl # Unused destroy_dirty_buffers arg removed from prototype. | |
4 | dnl # | |
5 | AC_DEFUN([ZFS_AC_KERNEL_INVALIDATE_BDEV_ARGS], [ | |
6 | AC_MSG_CHECKING([whether invalidate_bdev() wants 1 arg]) | |
7 | ZFS_LINUX_TRY_COMPILE([ | |
8 | #include <linux/buffer_head.h> | |
9 | ],[ | |
10 | struct block_device *bdev = NULL; | |
11 | invalidate_bdev(bdev); | |
12 | ],[ | |
13 | AC_MSG_RESULT(yes) | |
14 | AC_DEFINE(HAVE_1ARG_INVALIDATE_BDEV, 1, | |
15 | [invalidate_bdev() wants 1 arg]) | |
16 | ],[ | |
17 | AC_MSG_RESULT(no) | |
18 | ]) | |
19 | ]) |