Messages in this thread | | | Subject | Re: 2.6.12-mm1 cannot build nvidia driver? | From | Valdis.Kletnieks@vt ... | Date | Mon, 20 Jun 2005 12:39:49 -0400 |
| |
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
[unhandled content-type:application/pgp-signature] | |