diff options
author | Brian Behlendorf <[email protected]> | 2013-12-04 10:14:14 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-12-06 11:03:43 -0800 |
commit | 921a35adeb9ccfa123add942bfe20837454138fa (patch) | |
tree | 218dd1437fbb2aef87c06bb3718acd606bbcfba8 /module | |
parent | 50a0749eba31e821a7edf286f1e3b149f7d13c59 (diff) |
Add module versioning
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 <[email protected]>
Closes zfsonlinux/zfs#1923
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r-- | module/spl/spl-generic.c | 1 | ||||
-rw-r--r-- | module/splat/splat-ctl.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/module/spl/spl-generic.c b/module/spl/spl-generic.c index 3cef48946..351f53670 100644 --- a/module/spl/spl-generic.c +++ b/module/spl/spl-generic.c @@ -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); diff --git a/module/splat/splat-ctl.c b/module/splat/splat-ctl.c index 54b2ff459..6bbe0abba 100644 --- a/module/splat/splat-ctl.c +++ b/module/splat/splat-ctl.c @@ -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); |