RE: [PATCH] treewide: Convert uses of struct resource * toresource_size(ptr)
From: H Hartley Sweeten
Date: Tue Jun 07 2011 - 12:31:16 EST
On Monday, June 06, 2011 6:05 PM, Joe Perches wrote:
>
> Done via coccinelle script:
>
> struct resource *ptr;
> @@
>
> - ptr->end - ptr->start + 1
> + resource_size(ptr)
>
> Mostly uncompiled, not enough cross-compilers.
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> ---
>
>> I think most of the offenders were caught back in late 2009.
>
> There are quite a few left...
[...]
> arch/arm/plat-mxc/pwm.c | 8 ++++----
No reply on my patch for this one.
> drivers/char/hw_random/timeriomem-rng.c | 2 +-
Matt Mackall already acked my patch for this one. Not sure if anyone
picked it up and applied it.
[...]
> drivers/dma/at_hdmac.c | 4 ++--
> drivers/dma/ipu/ipu_idmac.c | 6 ++----
I think Vinod Koul already applied my patches for these two.
> drivers/dma/mv_xor.c | 5 ++---
> drivers/gpio/vr41xx_giu.c | 2 +-
No reply on my patches for these.
[...]
> drivers/misc/atmel_pwm.c | 2 +-
And no reply on my patch for this one.
Your treewide patch can be used instead of my individual patches if it's
easier/cleaner.
Reviewed-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
¢éì®&Þ~º&¶¬+-±éÝ¥w®Ë±Êâmébìdz¹Þ)í
æèw*jg¬±¨¶Ýj/êäz¹Þà2Þ¨èÚ&¢)ß«a¶Úþø®G«éh®æj:+v¨wèÙ>W±êÞiÛaxPjØm¶ÿÃ-»+ùd_