diff --git a/module/zcommon/Makefile.in b/module/zcommon/Makefile.in index 4627a93962..4e84b335ee 100644 --- a/module/zcommon/Makefile.in +++ b/module/zcommon/Makefile.in @@ -5,10 +5,10 @@ DISTFILES += zfs_prop.c zpool_prop.c zprop_common.c MODULE := zcommon EXTRA_CFLAGS = @KERNELCPPFLAGS@ -EXTRA_CFLAGS += -I@MODDIR@/zcommon/include -EXTRA_CFLAGS += -I@MODDIR@/spl/include EXTRA_CFLAGS += -I@MODDIR@/avl/include EXTRA_CFLAGS += -I@MODDIR@/nvpair/include +EXTRA_CFLAGS += -I@MODDIR@/zcommon/include +EXTRA_CFLAGS += -I@MODDIR@/zfs/include obj-m := ${MODULE}.o diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c index fc2ce65810..150d28109a 100644 --- a/module/zcommon/zfs_prop.c +++ b/module/zcommon/zfs_prop.c @@ -514,4 +514,22 @@ EXPORT_SYMBOL(zfs_prop_user); EXPORT_SYMBOL(zfs_prop_index_to_string); EXPORT_SYMBOL(zfs_prop_string_to_index); EXPORT_SYMBOL(zfs_prop_valid_for_type); + +static int __init zcommon_init(void) +{ + return 0; +} + +static void zcommon_fini(void) +{ + return; +} + +module_init(zcommon_init); +module_exit(zcommon_fini); + +MODULE_AUTHOR("Sun Microsystems, Inc"); +MODULE_DESCRIPTION("Generic ZFS support"); +MODULE_LICENSE("CDDL"); + #endif diff --git a/module/zfs/include/sys/zfs_context.h b/module/zfs/include/sys/zfs_context.h index a5be3e1303..effef35ee6 100644 --- a/module/zfs/include/sys/zfs_context.h +++ b/module/zfs/include/sys/zfs_context.h @@ -64,8 +64,6 @@ extern "C" { #include #include -#define CPU_SEQID (CPU->cpu_seqid) - #ifdef __cplusplus } #endif