From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 18.mo4.mail-out.ovh.net ([188.165.54.143] helo=mo4.mail-out.ovh.net) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QnsqK-0003gR-T0 for barebox@lists.infradead.org; Mon, 01 Aug 2011 13:47:42 +0000 Received: from mail182.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 6C4E1FFA5C6 for ; Mon, 1 Aug 2011 15:48:35 +0200 (CEST) From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 1 Aug 2011 15:29:38 +0200 Message-Id: <1312205383-13266-4-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <20110801132643.GH6255@game.jcrosoft.org> References: <20110801132643.GH6255@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/9] ARM l2x0: make init function static inline if l2 is not available To: barebox@lists.infradead.org From: Sascha Hauer So that the ifdeffery can be moved out of the board code. Signed-off-by: Sascha Hauer --- arch/arm/include/asm/mmu.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/mmu.h b/arch/arm/include/asm/mmu.h index f235448..d96c728 100644 --- a/arch/arm/include/asm/mmu.h +++ b/arch/arm/include/asm/mmu.h @@ -60,7 +60,13 @@ static inline void dma_inv_range(unsigned long s, unsigned long e) #endif +#ifdef CONFIG_CACHE_L2X0 void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask); +#else +static inline void __init l2x0_init(void __iomem *base, __u32 aux_val, __u32 aux_mask) +{ +} +#endif struct outer_cache_fns { void (*inv_range)(unsigned long, unsigned long); -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox