mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9542
This commit is contained in:
committed by
Brian Behlendorf
parent
bd4dde8ef7
commit
4a2ed90013
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user