mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Allow spl_config.h to be included by dependant packages
We need dependent packages to be able to include spl_config.h so they can leverage the configure checks the SPL has done. This is important because several of the spl headers need the results of these checks to work properly. Unfortunately, the autoheader build product is always private to a particular build and defined certain common things. (PACKAGE, VERSION, etc). This prevents other packages which also use autoheader from being include because the definitions conflict. To avoid this problem the SPL build system leverage AH_BOTTOM to include a spl_unconfig.h at the botton of the autoheader build product. This custom include undefs all known shared symbols to prevent the confict. This does however mean that those definition are also not availble to the SPL package either. The SPL package therefore uses the equivilant SPL_META_* definitions.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
#define DEBUG_SUBSYSTEM S_GENERIC
|
||||
|
||||
char spl_version[16] = "SPL v" VERSION;
|
||||
char spl_version[16] = "SPL v" SPL_META_VERSION;
|
||||
|
||||
long spl_hostid = 0;
|
||||
EXPORT_SYMBOL(spl_hostid);
|
||||
@@ -340,7 +340,7 @@ static int __init spl_init(void)
|
||||
if ((rc = set_kallsyms_lookup_name()))
|
||||
GOTO(out7, rc = -EADDRNOTAVAIL);
|
||||
|
||||
printk("SPL: Loaded Solaris Porting Layer v%s\n", VERSION);
|
||||
printk("SPL: Loaded Solaris Porting Layer v%s\n", SPL_META_VERSION);
|
||||
RETURN(rc);
|
||||
out7:
|
||||
kstat_fini();
|
||||
@@ -358,7 +358,7 @@ out:
|
||||
debug_fini();
|
||||
|
||||
printk("SPL: Failed to Load Solaris Porting Layer v%s, "
|
||||
"rc = %d\n", VERSION, rc);
|
||||
"rc = %d\n", SPL_META_VERSION, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ static void spl_fini(void)
|
||||
{
|
||||
ENTRY;
|
||||
|
||||
printk("SPL: Unloaded Solaris Porting Layer v%s\n", VERSION);
|
||||
printk("SPL: Unloaded Solaris Porting Layer v%s\n", SPL_META_VERSION);
|
||||
kstat_fini();
|
||||
proc_fini();
|
||||
vn_fini();
|
||||
|
||||
Reference in New Issue
Block a user