From: Brian Behlendorf Date: Wed, 4 Dec 2013 18:14:14 +0000 (-0800) Subject: Add module versioning X-Git-Tag: zfs-0.8.0-rc1~152^2~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=921a35adeb9ccfa123add942bfe20837454138fa;p=zfs 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 Closes zfsonlinux/zfs#1923 Signed-off-by: Brian Behlendorf --- 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);