3 dnl # add_disk grew a must-check return code
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_ADD_DISK], [
6 ZFS_LINUX_TEST_SRC([add_disk_ret], [
7 #include <linux/blkdev.h>
9 struct gendisk *disk = NULL;
10 int error __attribute__ ((unused)) = add_disk(disk);
14 AC_DEFUN([ZFS_AC_KERNEL_ADD_DISK], [
15 AC_MSG_CHECKING([whether add_disk() returns int])
16 ZFS_LINUX_TEST_RESULT([add_disk_ret],
19 AC_DEFINE(HAVE_ADD_DISK_RET, 1,
20 [add_disk() returns int])