Question for Ingo...
On Tue, 12 Feb 2008 10:04:18 +0100
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
This introduces a build error in drivers/acpi/thermal.c, because that code
does:
#ifdef CONFIF_DMI
<define some tables>
#endif
...
dmi_check_system(<those tables>);
Now, the approved fix here is to just remove the ifdefs. The !CONFIG_DMI
version of dmi_check_system() won't generate any references to the tables
and the build system is then supposed to remove the generated code and data
from vmlinux.
But this doesn't work.
When I add an ifdef around the dmi_check_system() call, I get
text data bss dec hex filename
1614279 210524 159992 1984795 1e491b vmlinux
but when I remove the ifdefs around the tables and rely on the compiler
removing the code and data I get
text data bss dec hex filename
1614447 210972 159992 1985411 1e4b83 vmlinux
An additional 616 bytes of useless stuff.
Ingo, I think there was some trick to making this work right. Do you
recall?
--