1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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.
This commit is contained in:
Bruce Evans 1995-08-31 06:28:29 +00:00
parent 5dce41c5a5
commit 6dbc0269e2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10489

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)kernel.h 8.3 (Berkeley) 1/21/94 * @(#)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_ #ifndef _SYS_KERNEL_H_
@ -236,7 +236,7 @@ extern void kproc_start __P(( caddr_t udata));
extern struct linker_set MODVNOPS; \ extern struct linker_set MODVNOPS; \
MOD_MISC(#name); \ MOD_MISC(#name); \
int name ## _load(struct lkm_table *lkmtp, int cmd) \ 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) \ int name ## _unload(struct lkm_table *lkmtp, int cmd) \
{ return EINVAL; } \ { return EINVAL; } \
int \ int \