Re: [PATCH 02/10] ALSA: ml403-ac97cr: use resource_size

From: Takashi Iwai
Date: Thu Jan 02 2020 - 10:13:26 EST


On Wed, 01 Jan 2020 20:23:24 +0100,
Julia Lawall wrote:
>
> On Wed, 1 Jan 2020, Takashi Iwai wrote:
>
> > On Wed, 01 Jan 2020 18:49:42 +0100,
> > Julia Lawall wrote:
> > >
> > > Use resource_size rather than a verbose computation on
> > > the end and start fields.
> > >
> > > The semantic patch that makes this change is as follows:
> > > (http://coccinelle.lip6.fr/)
> > >
> > > <smpl>
> > > @@ struct resource *ptr; @@
> > > - ((ptr->end) - (ptr->start) + 1)
> > > + resource_size(ptr)
> > > </smpl>
> > >
> > > Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxxx>
> >
> > Unfortunately this doesn't apply cleanly on my tree. I guess you
> > worked on linux-next which contains a change outside the sound git
> > tree that converts ioremap_nocache() to ioremap().
> >
> > We may apply it in sound git tree and let conflicts resolved at the
> > merge time. OTOH, it's no urgent fix at all and can be postponed
> > after 5.6-rc1 merge, too -- then everything can be applied in a
> > cleaner way.
> >
> > Let me know your preference.
>
> It's from linux-next. No hurry. Postponing it is fine.

OK, let's postpone this. Thanks.


Takashi