Thread (6 messages) 6 messages, 3 authors, 2020-01-29

Re: [PATCH 05/10] powerpc/83xx: use resource_size

flat view

From: Michael Ellerman <hidden>
Date: 2020-01-29 05:18:15
Also in: kernel-janitors, lkml

On Wed, 2020-01-01 at 17:49:45 UTC, Julia Lawall wrote:
quoted hunk ↗ jump to hunk
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@inria.fr>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/bfbe37f0ce994e7a9945653d7624fadc5c500a9f

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help