Re: 2.6.12-mm1 cannot build nvidia driver?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



*version of 1.0.7174-3 from debian* 

On 6/21/05, Paradise <[email protected]> wrote:
> 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, [email protected] <[email protected]> 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
> 


-- 
Regards,
Paradise
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux