Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756369Ab0AMUpk (ORCPT ); Wed, 13 Jan 2010 15:45:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755427Ab0AMUpj (ORCPT ); Wed, 13 Jan 2010 15:45:39 -0500 Received: from mail.issp.bas.bg ([195.96.236.10]:43271 "EHLO mail.issp.bas.bg" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755301Ab0AMUpj (ORCPT ); Wed, 13 Jan 2010 15:45:39 -0500 From: Marin Mitov Organization: Institute of Solid State Physics To: linux-kernel@vger.kernel.org Subject: [PATCH] Section mismatch: acpi_early_processor_set_pdc() Date: Wed, 13 Jan 2010 22:44:48 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.33-rc4; KDE/4.2.4; x86_64; ; ) Cc: Rusty Russell , Srivatsa Vaddagiri , Zwane Mwaikambo , Ashok Raj MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201001132244.49209.mitov@issp.bas.bg> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1584 Lines: 35 Hi all, kernel-2.6.33-rc4, compiler output: WARNING: Section mismatch in reference from the function acpi_early_processor_set_pdc() to the variable .cpuinit.data:processor_idle_dmi_table The function acpi_early_processor_set_pdc() references the variable __cpuinitdata processor_idle_dmi_table. This is often because acpi_early_processor_set_pdc lacks a __cpuinitdata annotation or the annotation of processor_idle_dmi_table is wrong. acpi_early_processor_set_pdc() is invoked only from __init acpi_bus_init() Mark it __cpuinit. The patch is against 2.6.33-rc4 Signed-off-by: Marin Mitov =========================================================================== --- a/drivers/acpi/processor_pdc.c 2010-01-13 21:53:14.000000000 +0200 +++ b/drivers/acpi/processor_pdc.c 2010-01-13 21:58:39.000000000 +0200 @@ -151,7 +151,7 @@ return AE_OK; } -void acpi_early_processor_set_pdc(void) +void __cpuinit acpi_early_processor_set_pdc(void) { /* * Check whether the system is DMI table. If yes, OSPM -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/