]> git.hungrycats.org Git - linux/commit
[PATCH] use container_of() for rb_entry()
authorPaolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it>
Wed, 20 Oct 2004 01:38:30 +0000 (18:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:38:30 +0000 (18:38 -0700)
commit551107ca34a5e350c3bcaf20b76301db0cf3a242
tree8459f534cb0fe15dfce851a82f61f37c4c82df04
parent0bf6d4e7f905149e1fc904a9f02ff68edd81ace4
[PATCH] use container_of() for rb_entry()

Use, in the rb_entry definition, the container_of macro instead of
reinventing the wheel; compared to using offset_of() as I did in the prev.
version, it has type safety checking.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/rbtree.h