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
@@ -46,6 +46,7 @@
|
||||
#include <sys/strings.h>
|
||||
#include <linux/kmod.h>
|
||||
#include "zfs_gitrev.h"
|
||||
#include <linux/mod_compat.h>
|
||||
|
||||
char spl_gitrev[64] = ZFS_META_GITREV;
|
||||
|
||||
@@ -751,7 +752,7 @@ spl_fini(void)
|
||||
module_init(spl_init);
|
||||
module_exit(spl_fini);
|
||||
|
||||
MODULE_DESCRIPTION("Solaris Porting Layer");
|
||||
MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
ZFS_MODULE_DESCRIPTION("Solaris Porting Layer");
|
||||
ZFS_MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
ZFS_MODULE_LICENSE("GPL");
|
||||
ZFS_MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
|
||||
@@ -318,9 +318,9 @@ _fini(void)
|
||||
#if defined(_KERNEL)
|
||||
module_init(_init);
|
||||
module_exit(_fini);
|
||||
|
||||
MODULE_DESCRIPTION("ZFS");
|
||||
MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
MODULE_LICENSE(ZFS_META_LICENSE);
|
||||
MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
#endif
|
||||
|
||||
ZFS_MODULE_DESCRIPTION("ZFS");
|
||||
ZFS_MODULE_AUTHOR(ZFS_META_AUTHOR);
|
||||
ZFS_MODULE_LICENSE(ZFS_META_LICENSE);
|
||||
ZFS_MODULE_VERSION(ZFS_META_VERSION "-" ZFS_META_RELEASE);
|
||||
|
||||
Reference in New Issue
Block a user