mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
72154bd6c9
Also remove -Wno-unused-but-set-variable Upstream-bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118 Reviewed-by: Alejandro Colomar <alx.manpages@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13110
21 lines
453 B
Plaintext
21 lines
453 B
Plaintext
dnl #
|
|
dnl # 2.6.x API change
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_GET_DISK_RO], [
|
|
ZFS_LINUX_TEST_SRC([get_disk_ro], [
|
|
#include <linux/blkdev.h>
|
|
],[
|
|
struct gendisk *disk __attribute__ ((unused)) = NULL;
|
|
(void) get_disk_ro(disk);
|
|
], [])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_GET_DISK_RO], [
|
|
AC_MSG_CHECKING([whether get_disk_ro() is available])
|
|
ZFS_LINUX_TEST_RESULT([get_disk_ro], [
|
|
AC_MSG_RESULT(yes)
|
|
],[
|
|
ZFS_LINUX_TEST_ERROR([get_disk_ro()])
|
|
])
|
|
])
|