]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/kernel-bdi-setup-and-register.m4
Fix configure tests to play nice with GCC 4.6
[mirror_zfs-debian.git] / config / kernel-bdi-setup-and-register.m4
1 dnl #
2 dnl # 2.6.34 API change
3 dnl # The bdi_setup_and_register() helper function is avilable and
4 dnl # exported by the kernel. This is a trivial helper function but
5 dnl # using it significantly simplifies the code surrounding setting
6 dnl # up and tearing down the bdi structure.
7 dnl #
8 AC_DEFUN([ZFS_AC_KERNEL_BDI_SETUP_AND_REGISTER], [
9 ZFS_CHECK_SYMBOL_EXPORT(
10 [bdi_setup_and_register],
11 [mm/backing-dev.c],
12 [AC_DEFINE(HAVE_BDI_SETUP_AND_REGISTER, 1,
13 [bdi_setup_and_register() is available])],
14 [])
15 ])