Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regmap: rbtree: improve 64bits memory alignment

Change regcache_rbtree_node strcuture fields order to align the pointers on
64bits architectures.

Signed-off-by: Jean-Christophe PINCE <jean-christophe.pince@intel.com>
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Jean-Christophe PINCE and committed by
Mark Brown
70d383b7 c9eaa447

+4 -4
+4 -4
drivers/base/regmap/regcache-rbtree.c
··· 23 23 static int regcache_rbtree_exit(struct regmap *map); 24 24 25 25 struct regcache_rbtree_node { 26 - /* the actual rbtree node holding this block */ 27 - struct rb_node node; 28 - /* base register handled by this block */ 29 - unsigned int base_reg; 30 26 /* block of adjacent registers */ 31 27 void *block; 32 28 /* Which registers are present */ 33 29 long *cache_present; 30 + /* base register handled by this block */ 31 + unsigned int base_reg; 34 32 /* number of registers available in the block */ 35 33 unsigned int blklen; 34 + /* the actual rbtree node holding this block */ 35 + struct rb_node node; 36 36 } __attribute__ ((packed)); 37 37 38 38 struct regcache_rbtree_ctx {