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/unicode/u8_textprep.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/unicode/u8_textprep.c')
-rw-r--r-- | module/unicode/u8_textprep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/module/unicode/u8_textprep.c b/module/unicode/u8_textprep.c index 4e6105b2e..11e7c1926 100644 --- a/module/unicode/u8_textprep.c +++ b/module/unicode/u8_textprep.c @@ -46,7 +46,7 @@ #include <sys/byteorder.h> #include <sys/errno.h> #include <sys/u8_textprep_data.h> - +#include <sys/mod.h> /* The maximum possible number of bytes in a UTF-8 character. */ #define U8_MB_CUR_MAX (4) @@ -2139,13 +2139,13 @@ unicode_fini(void) module_init(unicode_init); module_exit(unicode_fini); +#endif -MODULE_DESCRIPTION("Unicode implementation"); -MODULE_AUTHOR(ZFS_META_AUTHOR); -MODULE_LICENSE(ZFS_META_LICENSE); -MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE); +ZFS_MODULE_DESCRIPTION("Unicode implementation"); +ZFS_MODULE_AUTHOR(ZFS_META_AUTHOR); +ZFS_MODULE_LICENSE(ZFS_META_LICENSE); +ZFS_MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE); EXPORT_SYMBOL(u8_validate); EXPORT_SYMBOL(u8_strcmp); EXPORT_SYMBOL(u8_textprep_str); -#endif |