Patched in 2.6.25-rc5-git3 From kernel.org : commit 620a245978d007279bc5c7c64e15f5f63af9af98 Author: Guido Guenther <agx@sigxcpu.org> Date: Sun Mar 9 06:20:17 2008 +1100 [POWERPC] Fix build of modular drivers/macintosh/apm_emu.c Currently, if drivers/macintosh/apm_emu is a module and the config doesn't have CONFIG_SUSPEND we get: ERROR: "pmu_batteries" [drivers/macintosh/apm_emu.ko] undefined! ERROR: "pmu_battery_count" [drivers/macintosh/apm_emu.ko] undefined! ERROR: "pmu_power_flags" [drivers/macintosh/apm_emu.ko] undefined! on PPC32. The variables aren't wrapped in '#if defined(CONFIG_SUSPEND)' so we probably shouldn't wrap the exports either. This removes the CONFIG_SUSPEND part of the export, which fixes compilation on ppc32. Signed-off-by: Guido Guenther <agx@sigxcpu.org> Signed-off-by: Paul Mackerras <paulus@samba.org> Reproducible: Always Patch here : http://patchwork.ozlabs.org/linuxppc/patch?id=17022 It would be nice to see that patch merged into 2.6.24 since it is enough to allow the kernel to compile properly.
Created attachment 149691 [details, diff] modified apm patch for exported symbols Due to slight differences in the patched file from 2.6.24 -> 2.6.25. The referenced patch does not apply without rejects. The attached one does.
(In reply to comment #1) > Due to slight differences in the patched file from 2.6.24 -> 2.6.25. The > referenced patch does not apply without rejects. > > The attached one does. > My bad for not noticing (patched by hand here). Thanks for the heads-up.
fixed in gentoo-sources-2.6.24-r6 / genpatches-2.6.24-7, thanks for pointing us at the fix