mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
48ef8ba070
Split the kernel interface configure checks in to seperate m4 macro files. This is intended to facilitate moving the spl source code in to the zfs repository. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #682
40 lines
900 B
Plaintext
40 lines
900 B
Plaintext
dnl #
|
|
dnl # 3.9 API change
|
|
dnl # set_fs_pwd takes const struct path *
|
|
dnl #
|
|
AC_DEFUN([SPL_AC_SET_FS_PWD_WITH_CONST],
|
|
tmp_flags="$EXTRA_KCFLAGS"
|
|
EXTRA_KCFLAGS="-Werror"
|
|
[AC_MSG_CHECKING([whether set_fs_pwd() requires const struct path *])
|
|
SPL_LINUX_TRY_COMPILE([
|
|
#include <linux/spinlock.h>
|
|
#include <linux/fs_struct.h>
|
|
#include <linux/path.h>
|
|
void (*const set_fs_pwd_func)
|
|
(struct fs_struct *, const struct path *)
|
|
= set_fs_pwd;
|
|
],[
|
|
return 0;
|
|
],[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_SET_FS_PWD_WITH_CONST, 1,
|
|
[set_fs_pwd() needs const path *])
|
|
],[
|
|
SPL_LINUX_TRY_COMPILE([
|
|
#include <linux/spinlock.h>
|
|
#include <linux/fs_struct.h>
|
|
#include <linux/path.h>
|
|
void (*const set_fs_pwd_func)
|
|
(struct fs_struct *, struct path *)
|
|
= set_fs_pwd;
|
|
],[
|
|
return 0;
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
],[
|
|
AC_MSG_ERROR(unknown)
|
|
])
|
|
])
|
|
EXTRA_KCFLAGS="$tmp_flags"
|
|
])
|