2012-08-27 00:38:06 +04:00
|
|
|
dnl #
|
2018-06-20 07:52:45 +03:00
|
|
|
dnl # 2.6.36 API, exported elevator_change() symbol
|
|
|
|
dnl # 4.12 API, removed elevator_change() symbol
|
2012-08-27 00:38:06 +04:00
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_ELEVATOR_CHANGE], [
|
|
|
|
ZFS_LINUX_TEST_SRC([elevator_change], [
|
2012-08-27 00:38:06 +04:00
|
|
|
#include <linux/blkdev.h>
|
|
|
|
#include <linux/elevator.h>
|
|
|
|
],[
|
|
|
|
struct request_queue *q = NULL;
|
|
|
|
char *elevator = NULL;
|
2019-10-01 22:50:34 +03:00
|
|
|
int error __attribute__ ((unused)) =
|
|
|
|
elevator_change(q, elevator);
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_ELEVATOR_CHANGE], [
|
|
|
|
AC_MSG_CHECKING([whether elevator_change() is available])
|
|
|
|
ZFS_LINUX_TEST_RESULT([elevator_change], [
|
2012-08-27 00:38:06 +04:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_ELEVATOR_CHANGE, 1,
|
2019-10-01 22:50:34 +03:00
|
|
|
[elevator_change() is available])
|
2012-08-27 00:38:06 +04:00
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
])
|