mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
e0911f7b7f
A followup to 849c14e048
Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009242
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #13389
30 lines
922 B
Plaintext
30 lines
922 B
Plaintext
dnl #
|
|
dnl # On certain architectures `__copy_from_user_inatomic`
|
|
dnl # is a GPL exported variable and cannot be used by OpenZFS.
|
|
dnl #
|
|
|
|
dnl #
|
|
dnl # Checking if `__copy_from_user_inatomic` is available.
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC___COPY_FROM_USER_INATOMIC], [
|
|
ZFS_LINUX_TEST_SRC([__copy_from_user_inatomic], [
|
|
#include <linux/uaccess.h>
|
|
], [
|
|
int result __attribute__ ((unused)) = __copy_from_user_inatomic(NULL, NULL, 0);
|
|
], [], [ZFS_META_LICENSE])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL___COPY_FROM_USER_INATOMIC], [
|
|
AC_MSG_CHECKING([whether __copy_from_user_inatomic is available])
|
|
ZFS_LINUX_TEST_RESULT([__copy_from_user_inatomic_license], [
|
|
AC_MSG_RESULT(yes)
|
|
], [
|
|
AC_MSG_RESULT(no)
|
|
AC_MSG_ERROR([
|
|
*** The `__copy_from_user_inatomic()` Linux kernel function is
|
|
*** incompatible with the CDDL license and will prevent the module
|
|
*** linking stage from succeeding. OpenZFS cannot be compiled.
|
|
])
|
|
])
|
|
])
|