From: Cody P Schafer Date: Thu, 23 Jan 2014 23:56:05 +0000 (-0800) Subject: rbtree/test: move rb_node to the middle of the test struct X-Git-Tag: v3.14-rc1~108^2~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dbf128cbf9b90f97d74c734d1a768c564958e970;p=linux-block.git rbtree/test: move rb_node to the middle of the test struct Avoid making the rb_node the first entry to catch some bugs around NULL checking the rb_node. Signed-off-by: Cody P Schafer Cc: Michel Lespinasse Cc: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/rbtree_test.c b/lib/rbtree_test.c index 31dd4ccd3baa..df6c125ff5c2 100644 --- a/lib/rbtree_test.c +++ b/lib/rbtree_test.c @@ -8,8 +8,8 @@ #define CHECK_LOOPS 100 struct test_node { - struct rb_node rb; u32 key; + struct rb_node rb; /* following fields used for testing augmented rbtree functionality */ u32 val;