From owner-freebsd-current@FreeBSD.ORG Sat Sep 20 15:53:02 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A2275106566C for ; Sat, 20 Sep 2008 15:53:02 +0000 (UTC) (envelope-from trebestie@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 746788FC08 for ; Sat, 20 Sep 2008 15:53:02 +0000 (UTC) (envelope-from trebestie@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so925551wfg.7 for ; Sat, 20 Sep 2008 08:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5ul1CHwZHe+Gfvv43dIlhNATtPvWyMHBA7proa5mbog=; b=nSzfs4ePdednqCuxJNFTWq82uc1HKYNCXeF6MXvmO1OP0x2iR5Ak5JA/AcvL8w485x w1OfPSmztuzXTzfFrDKKiSjP9inImMwub5SHZeZkXj6IY0UblktFoHRixM0xE69zVXlM 5ggZE9NJYcLSk9m/ZENsfjxU6+j3K3BLF+wSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Aexn3afCUhSEEgJRF0QqpsR6ourFwZ9dpcAFX9zHPoXzX3A5XSwAp3fQRxWH+ku+iy w4L6z0V08e73viyRqxrKrWEoy4Qk7x4T/OfptOVBMRmbrpJLc4qaXafGP57N8IqjhrEW PmzpttqAoTGijgocltfyh38mmGTxXnev5qxY0= Received: by 10.142.140.15 with SMTP id n15mr561635wfd.168.1221925981992; Sat, 20 Sep 2008 08:53:01 -0700 (PDT) Received: by 10.142.141.16 with HTTP; Sat, 20 Sep 2008 08:53:01 -0700 (PDT) Message-ID: <83e5fb980809200853s2e1bbb19i7c0821776936ab46@mail.gmail.com> Date: Sat, 20 Sep 2008 17:53:01 +0200 From: "Diego Depaoli" To: "Stefan Ehmann" In-Reply-To: <200809201237.48903.shoesoft@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <83e5fb980809200158h4650ad2ci55883ef93e69d1d8@mail.gmail.com> <200809201237.48903.shoesoft@gmx.net> Cc: freebsd-current@freebsd.org Subject: Re: Today build breaks nvidia driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2008 15:53:02 -0000 2008/9/20 Stefan Ehmann : > 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