Subject: Re: compiling kernel for amd64 fails
To: None <current-users@NetBSD.org>
From: Elad Efrat <elad@NetBSD.org>
List: current-users
Date: 01/17/2008 00:48:12
David Young wrote:
> On Wed, Jan 16, 2008 at 06:17:45PM +0100, Kurt Schreiner wrote:
>> Hi,
>>
>> TSSIA ;-)
>>
>> made it compile w/ the following "patch":
>>
>> cvs diff -u sys/kern/sys_module.c
>> Index: sys/kern/sys_module.c
>> ===================================================================
>> RCS file: /cvsroot/src/sys/kern/sys_module.c,v
>> retrieving revision 1.1
>> diff -u -r1.1 sys_module.c
>> --- sys/kern/sys_module.c 16 Jan 2008 12:34:51 -0000 1.1
>> +++ sys/kern/sys_module.c 16 Jan 2008 17:16:53 -0000
>> @@ -78,7 +78,7 @@
>> case MODCTL_UNLOAD:
>> /* Authorize. */
>> error = kauth_authorize_system(l->l_cred, KAUTH_SYSTEM_MODULE,
>> - 0, (void *)SCARG(uap, cmd), NULL, NULL);
>> + 0, (void *)(long)SCARG(uap, cmd), NULL, NULL);
>
> Use uintptr_t ?
KAUTH_ARG()...
-e.