mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
regmap: Remove attribute packed from struct 'regcache_rbtree_node'
On one hand commit28644c809f("regmap: Add the rbtree cache support") added 'regcache_rbtree_node' as packed structure, while on the other hand commite977145aea("[RBTREE] Add explicit alignment to sizeof(long) for struct rb_node.") declared struct 'rb_node' as aligned. Solve the ambiguity of placing aligned structure in a packed one by removing the packed attribute from struct. This seems to be the behavior of gcc anyway. This removes the following warning (W=1): drivers/base/regmap/regcache-rbtree.c:36:1: warning: alignment 1 of 'struct regcache_rbtree_node' is less than 4 [-Wpacked-not-aligned] Cc: Dimitris Papastamos <[email protected]> Cc: David Woodhouse <[email protected]> Signed-off-by: Mathieu Malaterre <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
bfeffd1552
commit
435bba0f11
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ struct regcache_rbtree_node {
|
|||
unsigned int blklen;
|
||||
/* the actual rbtree node holding this block */
|
||||
struct rb_node node;
|
||||
} __attribute__ ((packed));
|
||||
};
|
||||
|
||||
struct regcache_rbtree_ctx {
|
||||
struct rb_root root;
|
||||
|
|
|
|||
Loading…
Reference in a new issue