diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c index 4d3b02cbd503..db4a90a203de 100644 --- a/sys/kern/sysv_msg.c +++ b/sys/kern/sysv_msg.c @@ -245,8 +245,8 @@ sysvmsg_modload(struct module *module, int cmd, void *arg) return (error); } -static moduledata_t sysvmsg_moduledata = { - "sysvmsg_mod", +static moduledata_t sysvmsg_mod = { + "sysvmsg", &sysvmsg_modload, NULL }; @@ -257,8 +257,9 @@ SYSCALL_MODULE_HELPER(msgget, 2); SYSCALL_MODULE_HELPER(msgsnd, 4); SYSCALL_MODULE_HELPER(msgrcv, 5); -DECLARE_MODULE(sysvmsg_mod, sysvmsg_moduledata, +DECLARE_MODULE(sysvmsg, sysvmsg_mod, SI_SUB_SYSV_MSG, SI_ORDER_FIRST); +MODULE_VERSION(sysvmsg, 1); /* * Entry point for all MSG calls diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c index e817a18e5468..3fab556a22bb 100644 --- a/sys/kern/sysv_sem.c +++ b/sys/kern/sysv_sem.c @@ -224,8 +224,8 @@ sysvsem_modload(struct module *module, int cmd, void *arg) return (error); } -static moduledata_t sysvsem_moduledata = { - "sysvsem_mod", +static moduledata_t sysvsem_mod = { + "sysvsem", &sysvsem_modload, NULL }; @@ -235,8 +235,9 @@ SYSCALL_MODULE_HELPER(__semctl, 4); SYSCALL_MODULE_HELPER(semget, 3); SYSCALL_MODULE_HELPER(semop, 3); -DECLARE_MODULE(sysvsem_mod, sysvsem_moduledata, +DECLARE_MODULE(sysvsem, sysvsem_mod, SI_SUB_SYSV_SEM, SI_ORDER_FIRST); +MODULE_VERSION(sysvsem, 1); /* * Entry point for all SEM calls diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index 97608f4c6167..b8134a10c6ab 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -738,8 +738,8 @@ sysvshm_modload(struct module *module, int cmd, void *arg) return (error); } -static moduledata_t sysvshm_moduledata = { - "sysvshm_mod", +static moduledata_t sysvshm_mod = { + "sysvshm", &sysvshm_modload, NULL }; @@ -750,5 +750,6 @@ SYSCALL_MODULE_HELPER(shmctl, 3); SYSCALL_MODULE_HELPER(shmdt, 1); SYSCALL_MODULE_HELPER(shmget, 3); -DECLARE_MODULE(sysvshm_mod, sysvshm_moduledata, +DECLARE_MODULE(sysvshm, sysvshm_mod, SI_SUB_SYSV_SHM, SI_ORDER_FIRST); +MODULE_VERSION(sysvshm, 1);