From: Sasha Levin <sasha.levin@oracle.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: paulmck@linux.vnet.ibm.com, dipankar@in.ibm.com,
mingo@kernel.org, hpa@zytor.com, akpm@linux-foundation.org,
linux-kernel@vger.kernel.org, peter.senna@gmail.com
Subject: Re: [RFC] hlist: drop the node parameter from iterators
Date: Fri, 02 Nov 2012 16:33:09 -0400 [thread overview]
Message-ID: <50942E05.9040607@oracle.com> (raw)
In-Reply-To: <CA+55aFy9QSZhFpEt=iEvYTHMGhd3ARwpHfZ+PghHNAEcP6Ko7g@mail.gmail.com>
On 11/02/2012 04:16 PM, Linus Torvalds wrote:
> On Thu, Nov 1, 2012 at 7:26 PM, Sasha Levin <sasha.levin@oracle.com> wrote:
>>
>> Here are some stats:
>>
>> - Applying the patch from -next on top of your current git head
>> results in 3 conflicts.
>>
>> - Applying the patch from your current git head on top of v3.6 results
>> in 18 conflicts.
>>
>> - Applying the patch from 3.6 on top of 3.5 results in 25 conflicts.
>
> Ok, that sounds slightly painful, but not unmanageable.
>
> Can you send me the actual patch, and I'll mull on this a bit more? I
> could run the coccinelle script myself, but I assume (maybe
> incorrectly?) that there are manual fixes to clean some stuff up
> afterwared..
You're right about that. There are 2 things which needs to be done after
running the script:
- Coccinelle doesn't handle cases where there are multiple variables in
the declaration. That means that things like:
struct hlist_node *node, *tmp;
Have to be fixed manually.
That's common when hlist_for_each_entry_safe() is used afterwards.
- Some places actually use node for their needs, while coccinelle can
automatically fix that to use '(ptr)->member', I'd rather go through those
places manually and make sure we're doing the right thing.
Do you want the patch on top of your git head, or on top of -next?
Thanks,
Sasha
next prev parent reply other threads:[~2012-11-02 20:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-01 23:06 [RFC] hlist: drop the node parameter from iterators Sasha Levin
2012-11-02 0:59 ` Linus Torvalds
2012-11-02 2:26 ` Sasha Levin
2012-11-02 20:16 ` Linus Torvalds
2012-11-02 20:31 ` Peter Senna Tschudin
2012-11-02 20:33 ` Sasha Levin [this message]
2012-11-02 20:39 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50942E05.9040607@oracle.com \
--to=sasha.levin@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=dipankar@in.ibm.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peter.senna@gmail.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.