[PATCH v3 9/9] rbtree: add RB_DECLARE_CALLBACKS() macro

2012-08-20 Thread Michel Lespinasse
As proposed by Peter Zijlstra, this makes it easier to define the augmented rbtree callbacks. Signed-off-by: Michel Lespinasse --- arch/x86/mm/pat_rbtree.c | 37 ++--- include/linux/rbtree.h | 30 ++ lib/rbtree_test.c|

[PATCH v3 9/9] rbtree: add RB_DECLARE_CALLBACKS() macro

2012-08-20 Thread Michel Lespinasse
As proposed by Peter Zijlstra, this makes it easier to define the augmented rbtree callbacks. Signed-off-by: Michel Lespinasse wal...@google.com --- arch/x86/mm/pat_rbtree.c | 37 ++--- include/linux/rbtree.h | 30 ++