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
@@ -139,4 +139,9 @@ enum scope_prefix_types {
|
||||
MODULE_PARM_DESC(name_prefix ## name, desc)
|
||||
/* END CSTYLED */
|
||||
|
||||
#define ZFS_MODULE_DESCRIPTION(s) MODULE_DESCRIPTION(s)
|
||||
#define ZFS_MODULE_AUTHOR(s) MODULE_AUTHOR(s)
|
||||
#define ZFS_MODULE_LICENSE(s) MODULE_LICENSE(s)
|
||||
#define ZFS_MODULE_VERSION(s) MODULE_VERSION(s)
|
||||
|
||||
#endif /* _MOD_COMPAT_H */
|
||||
|
||||
Reference in New Issue
Block a user