From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from intranet.asianux.com (intranet.asianux.com [58.214.24.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8F6062C0092 for ; Tue, 23 Jul 2013 10:38:33 +1000 (EST) Message-ID: <51EDD048.1000404@asianux.com> Date: Tue, 23 Jul 2013 08:37:28 +0800 From: Chen Gang MIME-Version: 1.0 To: Bjorn Helgaas Subject: Re: [PATCH] powerpc: platforms: powernv: add '__init' for pnv_pci_init_ioda2_phb() References: <51ECD6A4.3050408@asianux.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Cc: Richard Yang , Gavin Shan , Ram Pai , "paulus@samba.org" , "linuxppc-dev@lists.ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 07/23/2013 08:28 AM, Bjorn Helgaas wrote: > On Mon, Jul 22, 2013 at 12:52 AM, Chen Gang wrote: >> pnv_pci_init_ioda2_phb() is only used during boot up, so need add >> '__init' to save the related memory, and avoid related warning: >> >> The function .pnv_pci_init_ioda2_phb() references >> the function __init .pnv_pci_init_ioda_phb(). >> This is often because .pnv_pci_init_ioda2_phb lacks a __init >> annotation or the annotation of .pnv_pci_init_ioda_phb is wrong. >> >> >> Signed-off-by: Chen Gang > > Looks right to me. > Thanks. >> --- >> arch/powerpc/platforms/powernv/pci-ioda.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c >> index 49b57b9..d8140b1 100644 >> --- a/arch/powerpc/platforms/powernv/pci-ioda.c >> +++ b/arch/powerpc/platforms/powernv/pci-ioda.c >> @@ -1266,7 +1266,7 @@ void __init pnv_pci_init_ioda_phb(struct device_node *np, >> opal_pci_set_pe(phb_id, 0, 0, 7, 1, 1 , OPAL_MAP_PE); >> } >> >> -void pnv_pci_init_ioda2_phb(struct device_node *np) >> +void __init pnv_pci_init_ioda2_phb(struct device_node *np) >> { >> pnv_pci_init_ioda_phb(np, 0, PNV_PHB_IODA2); >> } >> -- >> 1.7.7.6 > > -- Chen Gang