[PATCH] ia64: rename platform_* to ia64_platform_*

From: Fengguang Wu
Date: Wed Jul 25 2012 - 09:40:00 EST


On Wed, Jul 25, 2012 at 01:18:39AM -0700, Joe Perches wrote:
> On Wed, 2012-07-25 at 16:06 +0800, Fengguang Wu wrote:
> > The macro name is too generic and conflicts with
> > snd_soc_dai_link.platform_name, which triggers lots of ALSA build errors.
>
> Is platform_name particularly special?
>
> Perhaps it's be better to rename all the other
> platform_<foo> uses to ia64_platform_<foo>

That's good point in general, oh well I just wanted to make the minimal change..

> []
>
> > diff --git a/arch/ia64/include/asm/machvec.h b/arch/ia64/include/asm/machvec.h
> []
> > @@ -120,7 +120,7 @@ extern void machvec_tlb_migrate_finish (struct mm_struct *);
> > # ifdef MACHVEC_PLATFORM_HEADER
> > # include MACHVEC_PLATFORM_HEADER
> > # else
> > -# define platform_name ia64_mv.name
> > +# define ia64_platform_name ia64_mv.name
> > # define platform_setup ia64_mv.setup
> > # define platform_cpu_init ia64_mv.cpu_init
> > # define platform_irq_init ia64_mv.irq_init
>
> Maybe something like:
>
> $ git ls-files arch/ia64 | \
> xargs sed -r -i 's/\bplatform_([a-z_]+)\b/ia64_platform_\1/g'

Thanks! To avoid some undesired changes, I ended up with the below script :)

Thanks,
Fengguang
---