From: Andrew Morton drivers/acpi/thermal.c: In function 'acpi_thermal_init': drivers/acpi/thermal.c:1794: error: 'thermal_dmi_table' undeclared (first use in this function) drivers/acpi/thermal.c:1794: error: (Each undeclared identifier is reported only once drivers/acpi/thermal.c:1794: error: for each function it appears in.) Signed-off-by: Andrew Morton --- drivers/acpi/thermal.c | 2 -- 1 file changed, 2 deletions(-) diff -puN drivers/acpi/thermal.c~drivers-acpi-thermalc-fix-build-with-config_dmi=n drivers/acpi/thermal.c --- a/drivers/acpi/thermal.c~drivers-acpi-thermalc-fix-build-with-config_dmi=n +++ a/drivers/acpi/thermal.c @@ -1710,7 +1710,6 @@ static int acpi_thermal_resume(struct ac return AE_OK; } -#ifdef CONFIG_DMI static int thermal_act(const struct dmi_system_id *d) { if (act == 0) { @@ -1785,7 +1784,6 @@ static struct dmi_system_id thermal_dmi_ }, {} }; -#endif /* CONFIG_DMI */ static int __init acpi_thermal_init(void) { _