]> git.proxmox.com Git - mirror_zfs.git/commit - module/nvpair/nvpair.c
Wrap Linux module macros
authorMatthew Macy <mmacy@freebsd.org>
Fri, 1 Nov 2019 17:41:03 +0000 (10:41 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Nov 2019 17:41:03 +0000 (10:41 -0700)
commit4a2ed9001353a895ff84594cb34e9c42fd24edaa
tree5b491b0d933db97f8d33cd6a02b2f18fed0d5d21
parentbd4dde8ef7b3861b20f12619f8994e037b303040
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
13 files changed:
include/os/linux/kernel/linux/mod_compat.h
include/os/linux/spl/sys/Makefile.am
include/os/linux/spl/sys/mod_os.h [new file with mode: 0644]
include/sys/Makefile.am
include/sys/mod.h [new file with mode: 0644]
include/sys/zfs_context.h
module/avl/avl.c
module/lua/lapi.c
module/nvpair/nvpair.c
module/os/linux/spl/spl-generic.c
module/os/linux/zfs/zfs_ioctl_os.c
module/unicode/u8_textprep.c
module/zcommon/zfs_prop.c