[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <486sDq0d8Qz9sS3@ozlabs.org>
Date: Wed, 29 Jan 2020 16:17:30 +1100 (AEDT)
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: Julia Lawall <Julia.Lawall@...ia.fr>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: Paul Mackerras <paulus@...ba.org>, kernel-janitors@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 10/10] powerpc/powernv: use resource_size
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/)
>
> <smpl>
> @@ struct resource ptr; @@
> - (ptr.end - ptr.start + 1)
> + resource_size(&ptr)
> </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@...ia.fr>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/552aa086944a9aeabd599892007c2c7faedb894e
cheers
Powered by blists - more mailing lists