All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>, Ingo Molnar <mingo@elte.hu>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [rfc -tip] lib,rb-tree - introduce rb_for_each helper
Date: Sun, 12 Jul 2009 15:20:01 +0200	[thread overview]
Message-ID: <1247404801.6733.0.camel@laptop> (raw)
In-Reply-To: <20090711222928.GD6641@nowhere>

On Sun, 2009-07-12 at 00:29 +0200, Frederic Weisbecker wrote:
> #define rb_for_each_entry(tpos, pos, root, memb) \
>         for (pos = rb_first(root); pos && tpos = rb_entry(pos, typeof(*tpos), memb); \
>              pos = rb_next(pos->memb, typeof(*pos), memb))

if you really want to do this, then at least call it:
for_each_rb_entry().


      parent reply	other threads:[~2009-07-12 13:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-11 22:00 [rfc -tip] lib,rb-tree - introduce rb_for_each helper Cyrill Gorcunov
2009-07-11 22:29 ` Frederic Weisbecker
2009-07-11 22:32   ` Frederic Weisbecker
2009-07-12  5:39     ` Cyrill Gorcunov
2009-07-12 13:20   ` Peter Zijlstra [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=1247404801.6733.0.camel@laptop \
    --to=peterz@infradead.org \
    --cc=fweisbec@gmail.com \
    --cc=gorcunov@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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.