2012-08-26 20:38:06 +00:00
|
|
|
dnl #
|
2018-06-20 04:52:45 +00:00
|
|
|
dnl # 2.6.36 API, exported elevator_change() symbol
|
|
|
|
dnl # 4.12 API, removed elevator_change() symbol
|
2012-08-26 20:38:06 +00:00
|
|
|
dnl #
|
2019-10-01 19:50:34 +00:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_ELEVATOR_CHANGE], [
|
|
|
|
ZFS_LINUX_TEST_SRC([elevator_change], [
|
2012-08-26 20:38:06 +00:00
|
|
|
#include <linux/blkdev.h>
|
|
|
|
#include <linux/elevator.h>
|
|
|
|
],[
|
|
|
|
struct request_queue *q = NULL;
|
|
|
|
char *elevator = NULL;
|
2019-10-01 19:50:34 +00: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-26 20:38:06 +00:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
AC_DEFINE(HAVE_ELEVATOR_CHANGE, 1,
|
2019-10-01 19:50:34 +00:00
|
|
|
[elevator_change() is available])
|
2012-08-26 20:38:06 +00:00
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
])
|