From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759611AbZJHU2g (ORCPT ); Thu, 8 Oct 2009 16:28:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757693AbZJHU2b (ORCPT ); Thu, 8 Oct 2009 16:28:31 -0400 Received: from mail-px0-f189.google.com ([209.85.216.189]:32939 "EHLO mail-px0-f189.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757562AbZJHU2a (ORCPT ); Thu, 8 Oct 2009 16:28:30 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IIISWp/9j+m7/8SLtoHEngD7MSRjCjW6Ifnq3xN74Gur6SBDxuqc2Cwityuqe9GANp InA+h2yC7x48s1EAEci0/3n6FfxX0NGSWh01/rwblQJ+3LFCV3kvrdQQdlSeoC/lN+2Q jdCqIxtJFWvzUjn08kVnF/Tirz+GgCSDF0o6o= MIME-Version: 1.0 Date: Thu, 8 Oct 2009 13:27:53 -0700 Message-ID: Subject: [PATH][RESUBMITTING] fixing harmless warning about __cpuinit in processor_idle.c From: Mathieu Rondonneau To: mathieu.rondonneau@gmail.com, rostedt , fweisbec , mingo , linux-kernel , linux-acpi , davem@davemloft.net Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix harmless warnings that causes compiler warning: WARNING: drivers/acpi/built-in.o(.text+0x21945): Section mismatch in reference from the function acpi_processor_add() to the function .cpuinit.text:acpi_processor_power_init() The function acpi_processor_add() references the function __cpuinit acpi_processor_power_init(). change files: driver/acpi/processor_idle.c Signed-off-by: Mathieu Rondonneau --- diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index bbd066e..166457a 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -105,7 +105,7 @@ static int set_max_cstate(const struct dmi_system_id *id) /* Actually this shouldn't be __cpuinitdata, would be better to fix the callers to only run once -AK */ -static struct dmi_system_id __cpuinitdata processor_power_dmi_table[] = { +static struct dmi_system_id processor_power_dmi_table[] = { { set_max_cstate, "Clevo 5600D", { DMI_MATCH(DMI_BIOS_VENDOR,"Phoenix Technologies LTD"), DMI_MATCH(DMI_BIOS_VERSION,"SHE845M0.86C.0013.D.0302131307")}, @@ -1158,7 +1158,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr) return ret; } -int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, +int acpi_processor_power_init(struct acpi_processor *pr, struct acpi_device *device) { acpi_status status = 0;