Whamcloud - gitweb
LU-3900 autoconf: use set_cpus_allowed_ptr for CPU_AFFINITY
[fs/lustre-release.git] / lnet / autoconf / lustre-lnet.m4
index 0a1232e..d38581c 100644 (file)
@@ -76,13 +76,13 @@ else
        LB_LINUX_TRY_COMPILE([
                #include <linux/sched.h>
        ],[
-               struct task_struct t;
+               struct task_struct *t;
                #if HAVE_CPUMASK_T
                cpumask_t     m;
                #else
                unsigned long m;
                #endif
-               set_cpus_allowed(&t, m);
+               set_cpus_allowed_ptr(t, &m);
        ],[
                AC_DEFINE(CPU_AFFINITY, 1, [kernel has cpu affinity support])
                AC_MSG_RESULT([yes])