The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/config/kernel-copy-from-user-inatomic.m4

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 dnl #
    2 dnl # On certain architectures `__copy_from_user_inatomic`
    3 dnl # is a GPL exported variable and cannot be used by OpenZFS.
    4 dnl #
    5 
    6 dnl #
    7 dnl # Checking if `__copy_from_user_inatomic` is available.
    8 dnl #
    9 AC_DEFUN([ZFS_AC_KERNEL_SRC___COPY_FROM_USER_INATOMIC], [
   10         ZFS_LINUX_TEST_SRC([__copy_from_user_inatomic], [
   11                 #include <linux/uaccess.h>
   12         ], [
   13                 int result __attribute__ ((unused)) = __copy_from_user_inatomic(NULL, NULL, 0);
   14         ], [], [ZFS_META_LICENSE])
   15 ])
   16 
   17 AC_DEFUN([ZFS_AC_KERNEL___COPY_FROM_USER_INATOMIC], [
   18         AC_MSG_CHECKING([whether __copy_from_user_inatomic is available])
   19         ZFS_LINUX_TEST_RESULT([__copy_from_user_inatomic_license], [
   20                 AC_MSG_RESULT(yes)
   21         ], [
   22                 AC_MSG_RESULT(no)
   23                 AC_MSG_ERROR([
   24         *** The `__copy_from_user_inatomic()` Linux kernel function is
   25         *** incompatible with the CDDL license and will prevent the module
   26         *** linking stage from succeeding.  OpenZFS cannot be compiled.
   27                 ])
   28         ])
   29 ])

Cache object: 3ed7743570d0a3c41fa2fc2e0bb6dec3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.