diff --git a/config/spl-build.m4 b/config/spl-build.m4 index f710d8e95..6e4afedba 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -1312,9 +1312,12 @@ dnl # AC_DEFUN([SPL_AC_3ARGS_ON_EACH_CPU], [ AC_MSG_CHECKING([whether on_each_cpu() wants 3 args]) SPL_LINUX_TRY_COMPILE([ + #include #include + + void on_each_cpu_func(void *data) { return; } ],[ - on_each_cpu(NULL, NULL, 0); + on_each_cpu(on_each_cpu_func, NULL, 0); ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_3ARGS_ON_EACH_CPU, 1,