mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
299fbf75ec
Linux decided to rename this for some reason. At some point, we should probably invert this mapping, but for now... Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Coleman Kane <ckane@colemankane.org> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #12975
27 lines
522 B
Plaintext
27 lines
522 B
Plaintext
dnl #
|
|
dnl # 5.16 API change
|
|
dnl # add_disk grew a must-check return code
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_ADD_DISK], [
|
|
|
|
ZFS_LINUX_TEST_SRC([add_disk_ret], [
|
|
#include <linux/genhd.h>
|
|
], [
|
|
struct gendisk *disk = NULL;
|
|
int err = add_disk(disk);
|
|
err = err;
|
|
])
|
|
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_ADD_DISK], [
|
|
AC_MSG_CHECKING([whether add_disk() returns int])
|
|
ZFS_LINUX_TEST_RESULT([add_disk_ret],
|
|
[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_ADD_DISK_RET, 1,
|
|
[add_disk() returns int])
|
|
], [
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|