From 44778f41100f88e7458d4deb2335ad09ce0bd0ea Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 1 Oct 2014 19:58:11 -0400 Subject: Remove kallsyms_lookup_name() wrapper After the removable of get_vmalloc_info(), the unused global memory variables, and the optional dcache/icache shrinkers there is no longer a need for the kallsyms compatibility code. This allows us to eliminate another brittle area of the code by removing the kernel upcall this functionality depended on for older kernels. Signed-off-by: Brian Behlendorf --- config/spl-build.m4 | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'config') diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 8761be485..712ad8470 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -28,7 +28,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [ SPL_AC_PDE_DATA SPL_AC_MUTEX_OWNER SPL_AC_MUTEX_OWNER_TASK_STRUCT - SPL_AC_KALLSYMS_LOOKUP_NAME SPL_AC_USER_PATH_DIR SPL_AC_SET_FS_PWD SPL_AC_SET_FS_PWD_WITH_CONST @@ -47,7 +46,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [ SPL_AC_EXPORTED_RWSEM_IS_LOCKED SPL_AC_KERNEL_FALLOCATE SPL_AC_KERN_PATH - SPL_AC_CONFIG_KALLSYMS SPL_AC_CONFIG_ZLIB_INFLATE SPL_AC_CONFIG_ZLIB_DEFLATE SPL_AC_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE @@ -957,25 +955,6 @@ AC_DEFUN([SPL_AC_MUTEX_OWNER_TASK_STRUCT], [ EXTRA_KCFLAGS="$tmp_flags" ]) -dnl # -dnl # 2.6.18 API change, -dnl # kallsyms_lookup_name no longer exported -dnl # -AC_DEFUN([SPL_AC_KALLSYMS_LOOKUP_NAME], - [AC_MSG_CHECKING([whether kallsyms_lookup_name() is available]) - SPL_LINUX_TRY_COMPILE_SYMBOL([ - #include - ], [ - kallsyms_lookup_name(NULL); - ], [kallsyms_lookup_name], [], [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_KALLSYMS_LOOKUP_NAME, 1, - [kallsyms_lookup_name() is available]) - ], [ - AC_MSG_RESULT(no) - ]) -]) - dnl # dnl # 3.10 API change, dnl # PDE is replaced by PDE_DATA @@ -1501,26 +1480,6 @@ AC_DEFUN([SPL_AC_KERN_PATH], ]) ]) -dnl # -dnl # /proc/kallsyms support, -dnl # Verify the kernel has CONFIG_KALLSYMS support enabled. -dnl # -AC_DEFUN([SPL_AC_CONFIG_KALLSYMS], [ - AC_MSG_CHECKING([whether CONFIG_KALLSYMS is defined]) - SPL_LINUX_TRY_COMPILE([ - #if !defined(CONFIG_KALLSYMS) - #error CONFIG_KALLSYMS not defined - #endif - ],[ ],[ - AC_MSG_RESULT([yes]) - ],[ - AC_MSG_RESULT([no]) - AC_MSG_ERROR([ - *** This kernel does not include the required kallsyms support. - *** Rebuild the kernel with CONFIG_KALLSYMS=y set.]) - ]) -]) - dnl # dnl # zlib inflate compat, dnl # Verify the kernel has CONFIG_ZLIB_INFLATE support enabled. -- cgit v1.2.3