Re: Today build breaks nvidia driver

From: Diego Depaoli <trebestie_at_gmail.com>
Date: Sat, 20 Sep 2008 17:53:01 +0200
2008/9/20 Stefan Ehmann <shoesoft_at_gmx.net>:
> On Saturday 20 September 2008 10:58:49 Diego Depaoli wrote:
>> Hi all,
>> I've some trouble building nvidia driver after today world/kernel.
>
>> cc1: warnings being treated as errors
>> nvidia_os.c: In function 'os_is_administrator':
>> nvidia_os.c:168: warning: implicit declaration of function 'suser'
>> nvidia_os.c:168: warning: nested extern declaration of 'suser'
>> *** Error code 1
>
> Ran across this problem yesterday:
>
> As a quick hack you can change one line in nvidia_os.c:
>
>  BOOL NV_API_CALL os_is_administrator(PHWINFO pDev)
>  {
> -    return suser(CURTHREAD) ? FALSE : TRUE;
> +    return priv_check(CURTHREAD, PRIV_DRIVER) ? FALSE : TRUE;
>  }

It works.
Many thanks

-- 
Diego Depaoli
Received on Sat Sep 20 2008 - 13:53:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC