diff options
| author | Miquel Raynal <[email protected]> | 2018-01-19 18:11:27 +0000 |
|---|---|---|
| committer | Boris Brezillon <[email protected]> | 2018-01-20 09:39:02 +0000 |
| commit | c1a72e2dbb4abb90bd408480d7c48ba40cb799ce (patch) | |
| tree | 60ee614bf74b313dfcd00937b8e9af403e878eb0 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | mtd: nand: marvell: Fix missing memory allocation modifier (diff) | |
| download | kernel-c1a72e2dbb4abb90bd408480d7c48ba40cb799ce.tar.gz kernel-c1a72e2dbb4abb90bd408480d7c48ba40cb799ce.zip | |
mtd: nand: Fix build issues due to an anonymous union
GCC-4.4.4 raises errors when assigning a parameter in an anonymous
union, leading to this kind of failure:
drivers/mtd/nand/marvell_nand.c:1936:
warning: missing braces around initializer
warning: (near initialization for '(anonymous)[1].<anonymous>')
error: unknown field 'data' specified in initializer
error: unknown field 'addr' specified in initializer
Work around the situation by naming these unions.
Fixes: 8878b126df76 ("mtd: nand: add ->exec_op() implementation")
Reported-by: Andrew Morton <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Tested-by: Andrew Morton <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
