linux-stable/drivers/base/regmap
Mathieu Malaterre 435bba0f11
regmap: Remove attribute packed from struct 'regcache_rbtree_node'
On one hand commit 28644c809f ("regmap: Add the rbtree cache support")
added 'regcache_rbtree_node' as packed structure, while on the other hand
commit e977145aea ("[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>
2019-01-29 15:23:56 +00:00
..
internal.h Merge remote-tracking branches 'regmap/topic/noinc' and 'regmap/topic/single-rw' into regmap-next 2018-10-21 12:07:26 +01:00
Kconfig regmap: add SCCB support 2018-07-18 15:45:23 +01:00
Makefile regmap: add SCCB support 2018-07-18 15:45:23 +01:00
regcache-flat.c regcache: flat: Un-inline index lookup from cache access 2018-01-08 12:08:57 +00:00
regcache-lzo.c
regcache-rbtree.c regmap: Remove attribute packed from struct 'regcache_rbtree_node' 2019-01-29 15:23:56 +00:00
regcache.c
regmap-ac97.c
regmap-debugfs.c regmap: debugfs: convert to DEFINE_SHOW_ATTRIBUTE 2018-12-17 19:06:13 +00:00
regmap-i2c.c regmap-i2c: Off by one in regmap_i2c_smbus_i2c_read/write() 2018-02-08 15:36:35 +00:00
regmap-irq.c regmap: irq: add an option to clear status registers on unmask 2018-12-19 18:38:13 +00:00
regmap-mmio.c regmap: Skip clk_put for attached clocks when freeing context 2018-05-17 16:11:41 +09:00
regmap-sccb.c regmap: sccb: fix typo and sort headers alphabetically 2018-07-23 18:05:08 +01:00
regmap-sdw.c regmap: Add SoundWire bus support 2018-01-08 11:27:18 +00:00
regmap-slimbus.c regmap: slimbus: add support to multi read/write 2018-07-11 11:58:04 +01:00
regmap-spi.c regmap: constify regmap_bus structures 2017-08-14 17:36:29 +01:00
regmap-spmi.c regmap: constify regmap_bus structures 2017-08-14 17:36:29 +01:00
regmap-w1.c regmap: regmap-w1: Fix build troubles 2017-07-17 15:53:00 +01:00
regmap.c Merge remote-tracking branches 'regmap/topic/noinc' and 'regmap/topic/single-rw' into regmap-next 2018-10-21 12:07:26 +01:00
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00