linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lib/rbtree: avoid pointless rb_node alignment
@ 2020-01-10 21:54 Davidlohr Bueso
  2020-01-20 14:39 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Davidlohr Bueso @ 2020-01-10 21:54 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Davidlohr Bueso, Davidlohr Bueso

Now that Linux no longer supports the CRIS architecture,
we can drop this fishy alignment. Apparently this was
need to prevent misalignments in struct address_space.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
 include/linux/rbtree.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/rbtree.h b/include/linux/rbtree.h
index 1fd61a9af45c..7e4b14b485f7 100644
--- a/include/linux/rbtree.h
+++ b/include/linux/rbtree.h
@@ -25,8 +25,7 @@ struct rb_node {
 	unsigned long  __rb_parent_color;
 	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 {
 	struct rb_node *rb_node;
-- 
2.16.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-21 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 21:54 [PATCH] lib/rbtree: avoid pointless rb_node alignment Davidlohr Bueso
2020-01-20 14:39 ` Geert Uytterhoeven
2020-01-20 17:51   ` Davidlohr Bueso
2020-01-21 21:04     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).