mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
d1ff2312b0
Remove all instances of functions being reimplemented in the SPL. When the prototypes are available in the linux headers but the function address itself is not exported use kallsyms_lookup_name() to find the address. The function name itself can them become a define which calls a function pointer. This is preferable to reimplementing the function in the SPL because it ensures we get the correct version of the function for the running kernel. This is actually pretty safe because the prototype is defined in the headers so we know we are calling the function properly. This patch also includes a rhel5 kernel patch we exports the needed symbols so we don't need to use kallsyms_lookup_name(). There are autoconf checks to detect if the symbol is exported and if so to use it directly. We should add patches for stock upstream kernels as needed if for no other reason than so we can easily track which additional symbols we needed exported. Those patches can also be used by anyone willing to rebuild their kernel, but this should not be a requirement. The rhel5 version of the export-symbols patch has been applied to the chaos kernel. Additional fixes: 1) Implement vmem_size() function using get_vmalloc_info() 2) SPL_CHECK_SYMBOL_EXPORT macro updated to use $LINUX_OBJ instead of $LINUX because Module.symvers is a build product. When $LINUX_OBJ != $LINUX we will not properly detect exported symbols. 3) SPL_LINUX_COMPILE_IFELSE macro updated to add include2 and $LINUX/include search paths to allow proper compilation when the kernel target build directory is not the source directory.
182 lines
4.1 KiB
C
182 lines
4.1 KiB
C
/* spl_config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
/* Define to 1 to enable callb debugging */
|
|
#undef DEBUG_CALLB
|
|
|
|
/* Define to 1 to enable kmem debugging */
|
|
#undef DEBUG_KMEM
|
|
|
|
/* Define to 1 to enable kstat debugging */
|
|
#undef DEBUG_KSTAT
|
|
|
|
/* Define to 1 to enable mutex debugging */
|
|
#undef DEBUG_MUTEX
|
|
|
|
/* register_sysctl_table() wants 2 args */
|
|
#undef HAVE_2ARGS_REGISTER_SYSCTL
|
|
|
|
/* INIT_WORK wants 3 args */
|
|
#undef HAVE_3ARGS_INIT_WORK
|
|
|
|
/* on_each_cpu wants 3 args */
|
|
#undef HAVE_3ARGS_ON_EACH_CPU
|
|
|
|
/* kernel defines atomic64_t */
|
|
#undef HAVE_ATOMIC64_T
|
|
|
|
/* class_device_create() is available */
|
|
#undef HAVE_CLASS_DEVICE_CREATE
|
|
|
|
/* unnumbered sysctl support exists */
|
|
#undef HAVE_CTL_UNNUMBERED
|
|
|
|
/* device_create() is available */
|
|
#undef HAVE_DEVICE_CREATE
|
|
|
|
/* div64_64() is available */
|
|
#undef HAVE_DIV64_64
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#undef HAVE_DLFCN_H
|
|
|
|
/* linux/fdtable.h exists */
|
|
#undef HAVE_FDTABLE_HEADER
|
|
|
|
/* files_fdtable() is available */
|
|
#undef HAVE_FILES_FDTABLE
|
|
|
|
/* first_online_pgdat() is available */
|
|
#undef HAVE_FIRST_ONLINE_PGDAT
|
|
|
|
/* fls64() is available */
|
|
#undef HAVE_FLS64
|
|
|
|
/* get_vmalloc_info() is available */
|
|
#undef HAVE_GET_VMALLOC_INFO
|
|
|
|
/* get_zone_counts() is available */
|
|
#undef HAVE_GET_ZONE_COUNTS
|
|
|
|
/* init_utsname() is available */
|
|
#undef HAVE_INIT_UTSNAME
|
|
|
|
/* struct inode has i_mutex */
|
|
#undef HAVE_INODE_I_MUTEX
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
/* kallsyms_lookup_name() is available */
|
|
#undef HAVE_KALLSYMS_LOOKUP_NAME
|
|
|
|
/* kmalloc_node() is available */
|
|
#undef HAVE_KMALLOC_NODE
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#undef HAVE_MEMORY_H
|
|
|
|
/* monotonic_clock() is available */
|
|
#undef HAVE_MONOTONIC_CLOCK
|
|
|
|
/* next_online_pgdat() is available */
|
|
#undef HAVE_NEXT_ONLINE_PGDAT
|
|
|
|
/* next_zone() is available */
|
|
#undef HAVE_NEXT_ZONE
|
|
|
|
/* struct path used in struct nameidata */
|
|
#undef HAVE_PATH_IN_NAMEIDATA
|
|
|
|
/* set_normalized_timespec() is available as export */
|
|
#undef HAVE_SET_NORMALIZED_TIMESPEC_EXPORT
|
|
|
|
/* set_normalized_timespec() is available as inline */
|
|
#undef HAVE_SET_NORMALIZED_TIMESPEC_INLINE
|
|
|
|
/* set_shrinker() available */
|
|
#undef HAVE_SET_SHRINKER
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#undef HAVE_STDINT_H
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#undef HAVE_STDLIB_H
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#undef HAVE_STRINGS_H
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#undef HAVE_STRING_H
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
/* task_curr() exported */
|
|
#undef HAVE_TASK_CURR
|
|
|
|
/* timespec_sub() is available */
|
|
#undef HAVE_TIMESPEC_SUB
|
|
|
|
/* linux/uaccess.h exists */
|
|
#undef HAVE_UACCESS_HEADER
|
|
|
|
/* kernel defines uintptr_t */
|
|
#undef HAVE_UINTPTR_T
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#undef HAVE_UNISTD_H
|
|
|
|
/* Name of package */
|
|
#undef PACKAGE
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
/* Define to the full name of this package. */
|
|
#undef PACKAGE_NAME
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#undef PACKAGE_STRING
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#undef PACKAGE_TARNAME
|
|
|
|
/* Define to the version of this package. */
|
|
#undef PACKAGE_VERSION
|
|
|
|
/* Define the project alias string. */
|
|
#undef SPL_META_ALIAS
|
|
|
|
/* Define the project author. */
|
|
#undef SPL_META_AUTHOR
|
|
|
|
/* Define the project release date. */
|
|
#undef SPL_META_DATA
|
|
|
|
/* Define the libtool library 'age' version information. */
|
|
#undef SPL_META_LT_AGE
|
|
|
|
/* Define the libtool library 'current' version information. */
|
|
#undef SPL_META_LT_CURRENT
|
|
|
|
/* Define the libtool library 'revision' version information. */
|
|
#undef SPL_META_LT_REVISION
|
|
|
|
/* Define the project name. */
|
|
#undef SPL_META_NAME
|
|
|
|
/* Define the project release. */
|
|
#undef SPL_META_RELEASE
|
|
|
|
/* Define the project version. */
|
|
#undef SPL_META_VERSION
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#undef STDC_HEADERS
|
|
|
|
/* Version number of package */
|
|
#undef VERSION
|