[PATCH 4/5] ARM: L2 : Errata 588369: Clean & Invalidate do not invalidate clean lines

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Feb 4 09:42:50 EST 2010


On Thu, Feb 04, 2010 at 07:55:46PM +0530, Santosh Shilimkar wrote:
> diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
> index 1a14d18..6241f10 100644
> --- a/arch/arm/mm/cache-l2x0.c
> +++ b/arch/arm/mm/cache-l2x0.c
> @@ -56,12 +56,41 @@ static inline void l2x0_inv_line(unsigned long addr)
>  	writel(addr, base + L2X0_INV_LINE_PA);
>  }
>  
> +#ifdef CONFIG_PL310_ERRATA_588369
> +extern void omap_smc1(u32 fn, u32 arg);
> +static void debug_writel(unsigned long val)
> +{

You could move the external declaration into this function, thereby
making it entirely local to this function (and hiding it from the
file scope.)



More information about the linux-arm-kernel mailing list