All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	hch@lst.de, davem@davemloft.net, peterz@infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0.01/1] hlist_for_each_entry_xxx: kill the "pos" argument
Date: Wed, 23 Apr 2008 14:02:27 -0700	[thread overview]
Message-ID: <20080423210227.GC8746@linux.vnet.ibm.com> (raw)
In-Reply-To: <20080422162337.GB19909@tv-sign.ru>

On Tue, Apr 22, 2008 at 08:23:37PM +0400, Oleg Nesterov wrote:
> On 04/22, Andrew Morton wrote:
> >
> > > On Tue, 22 Apr 2008 13:09:21 +0400 Oleg Nesterov <oleg@tv-sign.ru> wrote:
> > > On 04/21, Paul E. McKenney wrote:
> > > >
> > > > Might it be better to do this in two
> > > > phases to allow these patches to be applied incrementally?
> > > >
> > > > 1.	Change all to "obsolete" __hlist_for_each_entry_xxx().
> > > >
> > > > 2.	Incrementally change to hlist_for_each_entry_xxx(), removing
> > > > 	the extra variable where possible.
> > >
> > > Yes sure. Actually this was my initial plan.
> > >
> > > Andrew, which way do you prefer?
> >
> > Neither ;)
> >
> > The smoothest transition would come by adding new macros with new names,
> > then migrating all callers over then removing the old macros.
> 
> OK, will do, but....
> 
> > Preferably after leaving the old, unused macros in place for a kernel
> > cycle, but there's not much value in that unless we can make them emil
> > warnings when used, which isn't completely trivial.
> 
> we can make
> 
> 	static inline void __deprecated nop_for_hlist_for_each_entry(void) {}
> 
> and insert it into the old macro's body
> 
> > Plus there is no sensible new name which we can use.  Maybe you can think
> > of one, in which case that'd be a nice way to go.
> 
> Ah. But this _is_ the problem. There is no a good name for hlist_for_each_entry()
> except of course hlist_for_each_entry.

hlist_for_every_entry()?  (Sorry, couldn't resist...)

							Thanx, Paul

> Well. I'll use hnode_for_each_entry_xxx(), but please let me know if you
> change your mind ;)
> 
> Oleg.
> 

      reply	other threads:[~2008-04-23 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-21 15:14 [PATCH 0.01/1] hlist_for_each_entry_xxx: kill the "pos" argument Oleg Nesterov
2008-04-22  1:33 ` Paul E. McKenney
2008-04-22  9:09   ` Oleg Nesterov
2008-04-22 13:40     ` Andrew Morton
2008-04-22 16:23       ` Oleg Nesterov
2008-04-23 21:02         ` Paul E. McKenney [this message]

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=20080423210227.GC8746@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@tv-sign.ru \
    --cc=peterz@infradead.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.