2 dnl # 2.6.36 API, exported elevator_change() symbol
3 dnl # 4.12 API, removed elevator_change() symbol
5 AC_DEFUN([ZFS_AC_KERNEL_ELEVATOR_CHANGE], [
6 AC_MSG_CHECKING([whether elevator_change() is available])
7 tmp_flags="$EXTRA_KCFLAGS"
8 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/blkdev.h>
11 #include <linux/elevator.h>
14 struct request_queue *q = NULL;
15 char *elevator = NULL;
16 ret = elevator_change(q, elevator);
19 AC_DEFINE(HAVE_ELEVATOR_CHANGE, 1,
20 [elevator_change() is available])
24 EXTRA_KCFLAGS="$tmp_flags"