From 1ec7eda16743a74b363d3765bca7642935422862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20W=C3=B6rtwein?= Date: Tue, 4 Jun 2019 21:12:16 -0400 Subject: [PATCH] Allow TRIM_UNUSED_KSYM when build as a builtin-module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Torsten Wörtwein Closes #8820 --- config/kernel.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/kernel.m4 b/config/kernel.m4 index 2444b68eff..8e89c8014d 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -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 #