aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rbtree.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-04-21 18:15:39 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-04-21 18:15:39 -0400
commite977145aeaad23d443686f2a2d5b32800d1607c5 (patch)
tree99b066ca9933aef27778b62e3f783d55592ba9e2 /include/linux/rbtree.h
parent55a981027fc393c86de2c4e7836c9515088a9a58 (diff)
[RBTREE] Add explicit alignment to sizeof(long) for struct rb_node.
Seems like a strange requirement, but allegedly it was necessary for struct address_space on CRIS, because it otherwise ended up being only byte-aligned. It's harmless enough, and easier to just do it than to prove it isn't necessary... although I really ought to dig out my etrax board and test it some time. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/rbtree.h')
-rw-r--r--include/linux/rbtree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/rbtree.h b/include/linux/rbtree.h
index 748be50329d8..3cc30b0ab828 100644
--- a/include/linux/rbtree.h
+++ b/include/linux/rbtree.h
@@ -104,7 +104,8 @@ struct rb_node
104#define RB_BLACK 1 104#define RB_BLACK 1
105 struct rb_node *rb_right; 105 struct rb_node *rb_right;
106 struct rb_node *rb_left; 106 struct rb_node *rb_left;
107}; 107} __attribute__((aligned(sizeof(long))));
108 /* The alignment might seem pointless, but allegedly CRIS needs it */
108 109
109struct rb_root 110struct rb_root
110{ 111{