From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261487AbVFTTK7 (ORCPT ); Mon, 20 Jun 2005 15:10:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261510AbVFTTJF (ORCPT ); Mon, 20 Jun 2005 15:09:05 -0400 Received: from wproxy.gmail.com ([64.233.184.206]:29013 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S261499AbVFTTAN convert rfc822-to-8bit (ORCPT ); Mon, 20 Jun 2005 15:00:13 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Obgiyyqsvn1kbdnEBBmxG2xPFm0ZDAy9XJSZSsMENJ32xH3LRFUkArrBgCn9HXe0bcShWIMsOy2GARwZrcqWt5vXRcHqwtMRWAB/yzPulpCkz8SQ87vLvahyf48JcTBOZNZMRs+rrTUyiS4AgJpQkwT+MGuprJ6KlpQZsQ4h9KU= Message-ID: Date: Tue, 21 Jun 2005 03:00:12 +0800 From: Paradise Reply-To: Paradise To: "Valdis.Kletnieks@vt.edu" Subject: Re: 2.6.12-mm1 cannot build nvidia driver? Cc: linux-kernel@vger.kernel.org, Debian Users List , Andrew Morton In-Reply-To: <200506201639.j5KGdoNO016276@turing-police.cc.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <200506201639.j5KGdoNO016276@turing-police.cc.vt.edu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org this is the version of !defined(HAVE_COMPAT_IOCTL) from debian .....there is no "!defined(HAVE_COMPAT_IOCTL)" that you said.. void NV_API_CALL os_register_ioctl32_conversion(U032 cmd, U032 size) { #if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]); register_ioctl32_conversion(request, (void *)sys_ioctl); #endif /* NVCPU_X86_64 */ } void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) { #if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]); unregister_ioctl32_conversion(request); #endif /* NVCPU_X86_64 */ } On 6/21/05, Valdis.Kletnieks@vt.edu wrote: > On Mon, 20 Jun 2005 20:20:06 +0800, Paradise said: > > seems un/register_ioctl32_conversion is removed from 2.6.12-mm1.. > > any patch for nvidia kernel driver? > > No patch, but some hints - I suspect the problem is a local build config error... > > 1) The exact patch causing your problem in -mm1 is: > remove-register_ioctl32_conversion-and-unregister_ioctl32_conversion.patch > > Building with this one patch -R'ed out should help, but it's the wrong thing > to do, as it only papers over the real problem, which is: > > 2) Your failing code is in os-interface.c: > > void NV_API_CALL os_unregister_ioctl32_conversion(U032 cmd, U032 size) > { > #if defined(NVCPU_X86_64) && defined(CONFIG_IA32_EMULATION) && !defined(HAVE_COMPAT_IOCTL) > unsigned int request = _IOWR(NV_IOCTL_MAGIC, cmd, char[size]); > unregister_ioctl32_conversion(request); > #endif > } > > Might want to figure out why HAVE_COMPAT_IOCTL isn't defined - there's at least > 3 other places where it matters (in nv.c). It's #defined in the include/linux/fs.h > header in 2.6.12-rc6-mm1, so you probably want to figure out why your build isn't > picking up on it. Are your #include directories screwed up? > > Sorry I can't provide more help, this looks like an X86-64 only issue. If this > isnt enough, take it up on the NVidia forums: > > http://www.nvnews.net/vbulletin/forumdisplay.php?s=&forumid=14 > > > > > -- Regards, Paradise