diff options
author | Torsten Wörtwein <[email protected]> | 2019-06-04 21:12:16 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-06-07 12:45:40 -0700 |
commit | a0bf24952d1af9d8ac8bdd16f9cf7037c7d9bbf7 (patch) | |
tree | 9fbc60dbcb257ec0d16a2cd5cbadd288c30c0f66 /config | |
parent | d6920fb99677b93f3f2d94a9f34bdf9c3268bf21 (diff) |
Allow TRIM_UNUSED_KSYM when build as a builtin-module
If ZFS is built with enable_linux_builtin, it seems to be possible
to compile the kernel with TRIM_UNUSED_KSYM.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Torsten Wörtwein <[email protected]>
Closes #8820
Diffstat (limited to 'config')
-rw-r--r-- | config/kernel.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index 78d3a90a7..9a36302c0 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -529,10 +529,11 @@ AC_DEFUN([ZFS_AC_KERNEL_CONFIG_TRIM_UNUSED_KSYMS], [ AC_MSG_RESULT([yes]) ],[ AC_MSG_RESULT([no]) - AC_MSG_ERROR([ + AS_IF([test "x$enable_linux_builtin" != xyes], [ + AC_MSG_ERROR([ *** This kernel has unused symbols trimming enabled, please disable. *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set.]) - ]) + ])]) ]) dnl # |