Re: [patch 1/1] use offsetof for rb_entry
From: Christoph Hellwig
Date: Thu Oct 07 2004 - 16:41:09 EST
On Thu, Oct 07, 2004 at 07:53:42PM +0200, blaisorblade_spam@xxxxxxxx wrote:
>
> Use, in the rb_entry definition, the offsetof macro instead of reinventing the
> wheel.
Or just use container_of - which has the additional benefit of beeing typesafe.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/