Re: [PATCH 10/10] powerpc/powernv: use resource_size

2020-01-28 Thread Michael Ellerman
On Wed, 2020-01-01 at 17:49:50 UTC, Julia Lawall wrote: > Use resource_size rather than a verbose computation on > the end and start fields. > > The semantic patch that makes these changes is as follows: > (http://coccinelle.lip6.fr/) > > > @@ struct resource ptr; @@ > - (ptr.end - ptr.start + 1

[PATCH 10/10] powerpc/powernv: use resource_size

2020-01-01 Thread Julia Lawall
Use resource_size rather than a verbose computation on the end and start fields. The semantic patch that makes these changes is as follows: (http://coccinelle.lip6.fr/) @@ struct resource ptr; @@ - (ptr.end - ptr.start + 1) + resource_size(&ptr) Signed-off-by: Julia Lawall --- arch/powerpc/