When I try to build the new 2.6.38 kernel, I get the follosing error: drivers/built-in.o: In function `nouveau_pm_acpi_event': nouveau_pm.c:(.text+0xbfe89): undefined reference to `power_supply_is_system_supplied' make: *** [.tmp_vmlinux1] Error 1 Reproducible: Always
Please attach your kernel .config Did you run "make oldconfig" after upgrading your kernel?
Created attachment 266177 [details] .config (In reply to comment #1) > Please attach your kernel .config > Did you run "make oldconfig" after upgrading your kernel? No, I didn't. I usually copy the ".config" file from the old kernel folder to the new one and then do "make menuconfig", "make", "make modules_install", "make install" and that's all. Is it a wrong way?
(In reply to comment #2) > Created attachment 266177 [details] > .config > > (In reply to comment #1) > > Please attach your kernel .config > > Did you run "make oldconfig" after upgrading your kernel? > > No, I didn't. You could try it.
Try setting CONFIG_POWER_SUPPLY=y (I think you will find it is set to 'm')
(In reply to comment #4) > Try setting CONFIG_POWER_SUPPLY=y > (I think you will find it is set to 'm') Yes. It had been set to 'M'. I set it to 'Y', then run 'make oldconfig' and then it compiled fine. So, changing the "CONFIG_POWER_SUPPLY" parameter to 'Y' IS a solution, not obvious for me though. Anyway, thank you for the tip! Now I can use the new kernel. :)
I think an #ifdef CONFIG_POWER_SUPPLY before the function would fix the problem, without having the user to change kernel config. I sent an email upstream.
Created attachment 269631 [details, diff] nouveau_pm config build errror fix this patch was sent at the nouveau mailing list: http://lists.freedesktop.org/archives/nouveau/2011-April/008032.html
genpatches including linux-3.0 released, and in Portage.