diff options
author | Mathieu Malaterre <malat@debian.org> | 2019-01-24 21:06:24 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-29 18:23:56 +0300 |
commit | 435bba0f11f06789be59757719c161915e92f889 (patch) | |
tree | 1c774166338d3d5b75c3faca5382863232954ea1 /drivers/xen/gntalloc.c | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) | |
download | linux-435bba0f11f06789be59757719c161915e92f889.tar.xz |
regmap: Remove attribute packed from struct 'regcache_rbtree_node'
On one hand commit 28644c809f44 ("regmap: Add the rbtree cache support")
added 'regcache_rbtree_node' as packed structure, while on the other hand
commit e977145aeaad ("[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 <dp@opensource.wolfsonmicro.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/xen/gntalloc.c')
0 files changed, 0 insertions, 0 deletions