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 <behlendorf1@llnl.gov>
Signed-off-by: Torsten Wörtwein <twoertwein@gmail.com>
Closes #8820
This commit is contained in:
Torsten Wörtwein 2019-06-04 21:12:16 -04:00 committed by Brian Behlendorf
parent d6920fb996
commit a0bf24952d

View File

@ -529,10 +529,11 @@ AC_DEFUN([ZFS_AC_KERNEL_CONFIG_TRIM_UNUSED_KSYMS], [
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
],[ ],[
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
AS_IF([test "x$enable_linux_builtin" != xyes], [
AC_MSG_ERROR([ AC_MSG_ERROR([
*** This kernel has unused symbols trimming enabled, please disable. *** This kernel has unused symbols trimming enabled, please disable.
*** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set.]) *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set.])
]) ])])
]) ])
dnl # dnl #