Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645Ab0LIDfq (ORCPT ); Wed, 8 Dec 2010 22:35:46 -0500 Received: from mail-gw0-f42.google.com ([74.125.83.42]:56920 "EHLO mail-gw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753086Ab0LIDfk (ORCPT ); Wed, 8 Dec 2010 22:35:40 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=kamxsF7Z7lV1J0IAo/g3IqYqCsL6/jucWXM2QQiQiHmw13ypRu2Nvo/rjO4IoLBhkb 22TZmJbwpHi44u5IRKUZmsKUEadgU6VwJSUUdj/pl29s39FSEFvYbn7ga3glmK1Yd4uy E4pZ82qjHU0dOxQgPwe9+cfu++pksssS4iLI4= From: Namhyung Kim To: Len Brown Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ACPI: fix section mismatch warning Date: Thu, 9 Dec 2010 12:35:12 +0900 Message-Id: <1291865712-31557-1-git-send-email-namhyung@gmail.com> X-Mailer: git-send-email 1.7.3.3.400.g93cef Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1291 Lines: 37 Annotate acpi_os_initialize1() as __init to fix following warning: LD vmlinux.o MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x231587): Section mismatch in reference from the function acpi_os_initialize1() to the function .init.text:acpi_osi_setup_late() The function acpi_os_initialize1() references the function __init acpi_osi_setup_late(). This is often because acpi_os_initialize1 lacks a __init annotation or the annotation of acpi_osi_setup_late is wrong. Signed-off-by: Namhyung Kim --- drivers/acpi/osl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 966feddf6b1b..f7227e990b0f 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1530,7 +1530,7 @@ acpi_status __init acpi_os_initialize(void) return AE_OK; } -acpi_status acpi_os_initialize1(void) +acpi_status __init acpi_os_initialize1(void) { kacpid_wq = create_workqueue("kacpid"); kacpi_notify_wq = create_workqueue("kacpi_notify"); -- 1.7.3.3.400.g93cef -- 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/