diff options
author | szubersk <[email protected]> | 2022-05-07 00:53:42 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-11 10:32:51 -0700 |
commit | e0911f7b7f1ebd9aa00c198b87618b0308fe8c85 (patch) | |
tree | b2e4cc53e2d86ec075d61ea6b0b5942087eeac62 /config/kernel-copy-from-user-inatomic.m4 | |
parent | f567d67fdae5819ec25048a8b5d648fc14e6defe (diff) |
autoconf: Fail when __copy_from_user_inatomic is a non-GPL symbol
A followup to 849c14e04844a2f0e1f7e42886c2cef083563f35
Fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009242
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: szubersk <[email protected]>
Closes #13389
Diffstat (limited to 'config/kernel-copy-from-user-inatomic.m4')
-rw-r--r-- | config/kernel-copy-from-user-inatomic.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/kernel-copy-from-user-inatomic.m4 b/config/kernel-copy-from-user-inatomic.m4 index 5fddaca59..fec354b2f 100644 --- a/config/kernel-copy-from-user-inatomic.m4 +++ b/config/kernel-copy-from-user-inatomic.m4 @@ -18,9 +18,12 @@ 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_DEFINE(HAVE___COPY_FROM_USER_INATOMIC, 1, - [__copy_from_user_inatomic is available]) ], [ 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. + ]) ]) ]) |