2 dnl # config trim unused symbols,
3 dnl # Verify the kernel has CONFIG_TRIM_UNUSED_KSYMS DISABLED.
5 AC_DEFUN([SPL_AC_CONFIG_TRIM_UNUSED_KSYMS], [
6 AC_MSG_CHECKING([whether CONFIG_TRIM_UNUSED_KSYM is disabled])
7 SPL_LINUX_TRY_COMPILE([
8 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
9 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16 *** This kernel has unused symbols trimming enabled, please disable.
17 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set.])