diff options
author | Matthew Macy <[email protected]> | 2019-11-01 10:41:03 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-11-01 10:41:03 -0700 |
commit | 4a2ed9001353a895ff84594cb34e9c42fd24edaa (patch) | |
tree | 5b491b0d933db97f8d33cd6a02b2f18fed0d5d21 /module/zcommon/zfs_prop.c | |
parent | bd4dde8ef7b3861b20f12619f8994e037b303040 (diff) |
Wrap Linux module macros
MODULE_VERSION is already defined on FreeBSD. Wrap all of the
used MODULE_* macros for the sake of consistency and portability.
Add a user space noop version to reduce the need for _KERNEL ifdefs.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9542
Diffstat (limited to 'module/zcommon/zfs_prop.c')
-rw-r--r-- | module/zcommon/zfs_prop.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c index 10b521065..2a1004cb2 100644 --- a/module/zcommon/zfs_prop.c +++ b/module/zcommon/zfs_prop.c @@ -895,10 +895,12 @@ zcommon_fini(void) module_init(zcommon_init); module_exit(zcommon_fini); -MODULE_DESCRIPTION("Generic ZFS support"); -MODULE_AUTHOR(ZFS_META_AUTHOR); -MODULE_LICENSE(ZFS_META_LICENSE); -MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE); +#endif + +ZFS_MODULE_DESCRIPTION("Generic ZFS support"); +ZFS_MODULE_AUTHOR(ZFS_META_AUTHOR); +ZFS_MODULE_LICENSE(ZFS_META_LICENSE); +ZFS_MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE); /* zfs dataset property functions */ EXPORT_SYMBOL(zfs_userquota_prop_prefixes); @@ -924,5 +926,3 @@ EXPORT_SYMBOL(zfs_prop_index_to_string); EXPORT_SYMBOL(zfs_prop_string_to_index); EXPORT_SYMBOL(zfs_prop_valid_for_type); EXPORT_SYMBOL(zfs_prop_written); - -#endif |