From patchwork Thu Aug 25 16:07:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 111616 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 729EDB7633 for ; Fri, 26 Aug 2011 02:07:41 +1000 (EST) Received: from mail-qw0-f51.google.com (mail-qw0-f51.google.com [209.85.216.51]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 79D92B6F8E for ; Fri, 26 Aug 2011 02:07:33 +1000 (EST) Received: by qwf7 with SMTP id 7so1464641qwf.38 for ; Thu, 25 Aug 2011 09:07:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=nq843+06BcuNMesSXgXyELrLkvnphGfTS1rJ5rYLI54=; b=gJ6stt8Kvyx36JwhHbRNWriYTg6kYUnPjIW4UX0+JnLC6frtMi+gNF9fNnvrVBU6tp eDRMcmwDk5JgjSkP/+PSP1AykhKMC7SCJ0UUqoejooeAFCl0v/5uoEXKW2TDcXRbXN7f VNQlXfJ/0k6fKK53oOyIbLZUV2LIl3mZklWZY= Received: by 10.229.68.139 with SMTP id v11mr753107qci.56.1314288444236; Thu, 25 Aug 2011 09:07:24 -0700 (PDT) Received: from localhost.localdomain (69-165-142-232.dsl.teksavvy.com [69.165.142.232]) by mx.google.com with ESMTPS id w12sm396387qct.36.2011.08.25.09.07.22 (version=SSLv3 cipher=OTHER); Thu, 25 Aug 2011 09:07:23 -0700 (PDT) From: Arnaud Lacombe To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH] xics/icp_natives: add __init to marker icp_native_init() Date: Thu, 25 Aug 2011 12:07:13 -0400 Message-Id: <1314288433-26322-1-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.6.153.g78432 Cc: timur@freescale.com, Arnaud Lacombe , linux-kernel@vger.kernel.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org This should fix the following warning: LD arch/powerpc/sysdev/xics/built-in.o WARNING: arch/powerpc/sysdev/xics/built-in.o(.text+0x1310): Section mismatch in reference from the function .icp_native_init() to the function .init.text:.icp_native_init_one_node() The function .icp_native_init() references the function __init .icp_native_init_one_node(). This is often because .icp_native_init lacks a __init annotation or the annotation of .icp_native_init_one_node is wrong. icp_native_init() is only referenced in `arch/powerpc/sysdev/xics/xics-common.c' by xics_init() which is itself marked with __init. = not built-tested = Reported-by: Timur Tabi Signed-off-by: Arnaud Lacombe --- arch/powerpc/sysdev/xics/icp-native.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/xics/icp-native.c b/arch/powerpc/sysdev/xics/icp-native.c index 50e32af..4c79b6f 100644 --- a/arch/powerpc/sysdev/xics/icp-native.c +++ b/arch/powerpc/sysdev/xics/icp-native.c @@ -276,7 +276,7 @@ static const struct icp_ops icp_native_ops = { #endif }; -int icp_native_init(void) +int __init icp_native_init(void) { struct device_node *np; u32 indx = 0;