mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +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
+7
-7
@@ -1295,10 +1295,13 @@ lua_fini(void)
|
||||
module_init(lua_init);
|
||||
module_exit(lua_fini);
|
||||
|
||||
MODULE_DESCRIPTION("Lua Interpreter for ZFS");
|
||||
MODULE_AUTHOR("Lua.org");
|
||||
MODULE_LICENSE("MIT");
|
||||
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
ZFS_MODULE_DESCRIPTION("Lua Interpreter for ZFS");
|
||||
ZFS_MODULE_AUTHOR("Lua.org");
|
||||
ZFS_MODULE_LICENSE("MIT");
|
||||
ZFS_MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
|
||||
EXPORT_SYMBOL(lua_absindex);
|
||||
EXPORT_SYMBOL(lua_atpanic);
|
||||
@@ -1340,6 +1343,3 @@ EXPORT_SYMBOL(lua_tonumberx);
|
||||
EXPORT_SYMBOL(lua_touserdata);
|
||||
EXPORT_SYMBOL(lua_type);
|
||||
EXPORT_SYMBOL(lua_typename);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
Reference in New Issue
Block a user