Skip to content

Commit edc9e33

Browse files
committed
ARM: mv78xx0: correct addr_map_cfg __initdata annotation
The annotation on the addr_map_cfg variable is in the wrong place. Without this patch, building mv78xx0_defconfig results in: /home/arnd/linux-arm/arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: initialization from incompatible pointer type [enabled by default] /home/arnd/linux-arm/arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: (near initialization for 'addr_map_cfg.win_cfg_base') [enabled by default] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Andrew Lunn <andrew@lunn.ch> Cc: Jason Cooper <jason@lakedaemon.net>
1 parent ec8e820 commit edc9e33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm/mach-mv78xx0/addr-map.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg *cfg, i
5353
/*
5454
* Description of the windows needed by the platform code
5555
*/
56-
static struct __initdata orion_addr_map_cfg addr_map_cfg = {
56+
static struct orion_addr_map_cfg addr_map_cfg __initdata = {
5757
.num_wins = 14,
5858
.remappable_wins = 8,
5959
.win_cfg_base = win_cfg_base,

0 commit comments

Comments
 (0)