]> git.proxmox.com Git - mirror_spl.git/commitdiff
Add module versioning
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 4 Dec 2013 18:14:14 +0000 (10:14 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 Dec 2013 19:03:43 +0000 (11:03 -0800)
Use the standard Linux MODULE_VERSION macro to expose the installed
spl and splat module versions.  This will also automatically add a
checksum of the .c files and headers in "srcversion".  See:

  /sys/module/spl/version
  /sys/module/spl/srcversion
  /sys/module/splat/version
  /sys/module/splat/srcversion

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes zfsonlinux/zfs#1923

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/spl/spl-generic.c
module/splat/splat-ctl.c

index 3cef489461bb164771e7bef45c82a4501c5a2845..351f53670b8b50f973e26d6439adc59c63c1d45e 100644 (file)
@@ -759,3 +759,4 @@ module_exit(spl_fini);
 MODULE_AUTHOR("Lawrence Livermore National Labs");
 MODULE_DESCRIPTION("Solaris Porting Layer");
 MODULE_LICENSE("GPL");
+MODULE_VERSION(SPL_META_VERSION "-" SPL_META_RELEASE);
index 54b2ff459df62ef7e2c5e8e57028daf58f7b5ba5..6bbe0abba02703e17ba575f663160bf1246987f2 100644 (file)
@@ -721,3 +721,4 @@ spl_module_exit(splat_fini);
 MODULE_AUTHOR("Lawrence Livermore National Labs");
 MODULE_DESCRIPTION("Solaris Porting LAyer Tests");
 MODULE_LICENSE("GPL");
+MODULE_VERSION(SPL_META_VERSION "-" SPL_META_RELEASE);