From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "MSIT Machine Auth CA 2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id D05E62C00AD for ; Tue, 2 Jul 2013 12:26:16 +1000 (EST) From: Jia Hongtao-B38951 To: Jia Hongtao-B38951 , "linuxppc-dev@lists.ozlabs.org" , Wood Scott-B07421 Subject: RE: [PATCH] powerpc/msi: Fix compile error on mpc83xx Date: Tue, 2 Jul 2013 02:26:07 +0000 Message-ID: <412C8208B4A0464FA894C5F0C278CD5D01CDFFA0@039-SN1MPN1-003.039d.mgd.msft.net> References: <1372728892-31501-1-git-send-email-hongtao.jia@freescale.com> In-Reply-To: <1372728892-31501-1-git-send-email-hongtao.jia@freescale.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Cc: Li Yang-R58472 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Please ignore this patch. -Hongtao > -----Original Message----- > From: Jia Hongtao-B38951 > Sent: Tuesday, July 02, 2013 9:35 AM > To: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421 > Cc: galak@kernel.crashing.org; Li Yang-R58472; Jia Hongtao-B38951 > Subject: [PATCH] powerpc/msi: Fix compile error on mpc83xx >=20 > mpic_get_primary_version() is not defined when not using MPIC. > The compile error log like: >=20 > arch/powerpc/sysdev/built-in.o: In function `fsl_of_msi_probe': > fsl_msi.c:(.text+0x150c): undefined reference to > `fsl_mpic_primary_get_version' >=20 > Signed-off-by: Jia Hongtao > Signed-off-by: Jia Hongtao > --- > arch/powerpc/include/asm/mpic.h | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/arch/powerpc/include/asm/mpic.h > b/arch/powerpc/include/asm/mpic.h > index ea6bf72..97b5a63 100644 > --- a/arch/powerpc/include/asm/mpic.h > +++ b/arch/powerpc/include/asm/mpic.h > @@ -394,7 +394,14 @@ struct mpic > #define MPIC_REGSET_TSI108 MPIC_REGSET(1) /* Tsi108/109 > PIC */ >=20 > /* Get the version of primary MPIC */ > +#ifdef CONFIG_MPIC > extern u32 fsl_mpic_primary_get_version(void); > +#else > +static inline u32 fsl_mpic_primary_get_version(void) > +{ > + return 0; > +} > +#endif >=20 > /* Allocate the controller structure and setup the linux irq descs > * for the range if interrupts passed in. No HW initialization is > -- > 1.8.0