AC_MSG_RESULT(no)
])
- AC_MSG_CHECKING([if mm.h get_user_pages has 6 params])
- LB_LINUX_TRY_COMPILE([
- #include <linux/mm.h>
- ],[
- get_user_pages(0, 0, 0, 0, NULL, NULL);
-
- return 0;
- ],[
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_GET_USER_PAGES_6_PARAMS, 1,
- [get_user_pages has 6 params])
- ],[
- AC_MSG_RESULT(no)
- ])
-
AC_MSG_CHECKING([if mm.h get_user_pages_remote])
LB_LINUX_TRY_COMPILE([
#include <linux/mm.h>
#include "../../compat/config.h"
#include_next <linux/mm.h>
-#ifdef HAVE_GET_USER_PAGES_6_PARAMS
-#define get_user_pages(p1, p2, p3, p4, p5, p6, p7, p8) \
- get_user_pages(p3, p4, p5, p6, p7, p8)
-#endif
-
#ifndef HAVE_GET_USER_PAGES_REMOTE
#define get_user_pages_remote get_user_pages
#endif