From 6dbc0269e2e60a85682ae30bd4ffea121e3fa175 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 31 Aug 1995 06:28:29 +0000 Subject: [PATCH] Fix fatal function type mismatches in lkms. lkm init functions recently gained a dummy argument for compatibility with sysinit functions, but this arg wasn't passed for lkms outside the kernel. --- sys/sys/kernel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 917797d3be4a..ef323f9f9d80 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * @(#)kernel.h 8.3 (Berkeley) 1/21/94 - * $Id: kernel.h,v 1.9 1995/03/20 19:20:26 wollman Exp $ + * $Id: kernel.h,v 1.10 1995/08/28 09:19:04 julian Exp $ */ #ifndef _SYS_KERNEL_H_ @@ -236,7 +236,7 @@ extern void kproc_start __P(( caddr_t udata)); extern struct linker_set MODVNOPS; \ MOD_MISC(#name); \ int name ## _load(struct lkm_table *lkmtp, int cmd) \ - { init(); return 0; } \ + { init((caddr_t)NULL /* XXX unused (?) */); return 0; } \ int name ## _unload(struct lkm_table *lkmtp, int cmd) \ { return EINVAL; } \ int \