DragonFly users List (threaded) for 2010-11
Re: Updating corecode's nvidia driver
On Thu, Nov 11, 2010 at 9:45 PM, <email@example.com> wrote:
> Currently gives a compile error upon running "make"
> In file included from nvidia_ctl.c:14:
> nv-freebsd.h:267: error: field 'rsel' has incomplete type
> nv-freebsd.h: In function 'pmap_mapdev_attr':
> nv-freebsd.h:351: error: too few arguments to function 'kmem_alloc_nofault'
> nvidia_ctl.c: At top level:
> nvidia_ctl.c:19: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'nvidia_ctl_poll'
> nvidia_ctl.c:26: error: unknown field 'd_poll' specified in initializer
> nvidia_ctl.c:26: error: 'nvidia_ctl_poll' undeclared here (not in a function)
> nvidia_ctl.c:86: warning: 'struct dev_poll_args' declared inside parameter
> nvidia_ctl.c:86: warning: its scope is only this definition or
> declaration, which is probably not what you want
> nvidia_ctl.c:87: warning: no previous prototype for 'nvidia_ctl_poll'
> nvidia_ctl.c: In function 'nvidia_ctl_poll':
> nvidia_ctl.c:88: error: dereferencing pointer to incomplete type
> nvidia_ctl.c:105: warning: implicit declaration of function 'selrecord'
> nvidia_ctl.c:105: warning: nested extern declaration of 'selrecord'
> nvidia_ctl.c:106: error: dereferencing pointer to incomplete type
> nvidia_ctl.c:109: error: dereferencing pointer to incomplete type
> Is this too difficult to unbreak? I just had a look at nv-freebsd.h:267
> and it's defining a variable rsel of type struct selinfo, but I have no
> idea where that's coming from. Any clues?
Well, the poll stuff is easy.... We don't have poll support in the
kernel anymore, you need to rewrite those as kq filters. See any other
driver for details.