lkml.org 
[lkml]   [2011]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [TRIVIAL PATCH v2] treewide: Convert uses of struct resource to resource_size(ptr)
From
Date
On Thu, 2011-06-09 at 14:25 +0200, Jiri Kosina wrote:
> On Tue, 7 Jun 2011, Joe Perches wrote:
> > Several fixes as well where the +1 was missing.
> > Done via coccinelle scripts like:
> > @@
> > struct resource *ptr;
> > @@
> > - ptr->end - ptr->start + 1
> > + resource_size(ptr)
> > and some grep and typing.
> > Mostly uncompiled, no cross-compilers.
> > Some checkpatch complaints cheerfully ignored.
> > Signed-off-by: Joe Perches <joe@perches.com>
> thanks a lot for the patch. I will be happily taking it. However it seems
> like some of the files are going away/have been moved in -next. Could you
> please respin on top of what is still applicable on -next and resend?

Hi Jiri.

The original patch is for next-20110607.
There were 2 identical patches for resource_size
applied to the next tree as of next-20110609.

I just cherry-pick'ed it and the diff is the same
modulo those 2 already applied bits.

Because it's pretty large, I'll send the new diff
just to you off-list.

cheers, Joe



\
 
 \ /
  Last update: 2011-06-09 18:11    [W:0.701 / U:0.816 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site