Re: [PATCH] Configure out DMI scanning code v2 (Linux Tiny)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Petazzoni <thomas.petazzoni@...>
Cc: <mingo@...>, <tglx@...>, <hpa@...>, <mpm@...>, <Linux-tiny@...>, <linux-kernel@...>, Reynes Philippe <tremyfr@...>
Date: Tuesday, April 1, 2008 - 3:00 pm

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?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Configure out DMI scanning code v2 (Linux Tiny), Thomas Petazzoni, (Tue Feb 12, 5:04 am)
Re: [PATCH] Configure out DMI scanning code v2 (Linux Tiny), Andrew Morton, (Tue Apr 1, 3:00 pm)