提交 e977145a 编写于 作者: D David Woodhouse

[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: NDavid Woodhouse <dwmw2@infradead.org>
上级 55a98102
......@@ -104,7 +104,8 @@ struct rb_node
#define RB_BLACK 1
struct rb_node *rb_right;
struct rb_node *rb_left;
};
} __attribute__((aligned(sizeof(long))));
/* The alignment might seem pointless, but allegedly CRIS needs it */
struct rb_root
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册