On Thu, Apr 21, 2011 at 9:15 AM, Alex Williamson <alex.l.william...@gmail.com> wrote: > On Thu, Apr 21, 2011 at 8:13 AM, Ellington Santos > <elling...@santos.eti.br> wrote: >> I've got a compiler error: >> >> root@darkelf:~/asus-switcheroo# make >> make -C /lib/modules/2.6.37.6-smp/build M=/root/asus-switcheroo modules >> make[1]: Entering directory `/usr/src/linux-2.6.37.6' >> CC [M] /root/asus-switcheroo/asus-switcheroo.o >> /root/asus-switcheroo/asus-switcheroo.c: In function 'asus_switcheroo_init': >> /root/asus-switcheroo/asus-switcheroo.c:312:13: error: too many arguments to >> function 'vga_switcheroo_register_client' >> include/linux/vga_switcheroo.h:34:5: note: declared here >> make[2]: *** [/root/asus-switcheroo/asus-switcheroo.o] Error 1 >> make[1]: *** [_module_/root/asus-switcheroo] Error 2 >> make[1]: Leaving directory `/usr/src/linux-2.6.37.6' >> make: *** [default] Error 2 >> >> :-( > > I thought the extra switcheroo client arg went into 2.6.37, but maybe > I made a mistake. There are two instances of KERNEL_VERSION(2,6,37) > in the code, try changing them both to KERNEL_VERSION(2,6,38).
I guess there were 3 of them. I checked the code, and indeed the reprobe wasn't present in 2.6.37. I pushed a fix for this, so a pull should fix it. Thanks, Alex _______________________________________________ Mailing list: https://launchpad.net/~hybrid-graphics-linux Post to : hybrid-graphics-linux@lists.launchpad.net Unsubscribe : https://launchpad.net/~hybrid-graphics-linux More help : https://help.launchpad.net/ListHelp