]> granicus.if.org Git - zfs/commitdiff
Allow TRIM_UNUSED_KSYM when build as a builtin-module
authorTorsten Wörtwein <twoertwein@users.noreply.github.com>
Wed, 5 Jun 2019 01:12:16 +0000 (21:12 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Jun 2019 01:12:16 +0000 (18:12 -0700)
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 <behlendorf1@llnl.gov>
Signed-off-by: Torsten Wörtwein <twoertwein@gmail.com>
Closes #8820

config/kernel.m4

index 2444b68eff91b003efa3f9065f46e7be8d26e5a7..8e89c8014d8ae7e4ba13c66d5f105a5d541d286d 100644 (file)
@@ -528,10 +528,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 #