Re: [PATCH 03/10] ARM: mv78xx0: fix win_cfg_base prototype
On Wed, Aug 08, 2012 at 11:27:51PM +0200, Arnd Bergmann wrote: > Patch b6d1c33a31 "ARM: Orion: Consolidate the address map setup" tried > to merge the address map for the four orion platforms, but apparently > got it wrong for mv78xx0. Admittedly I don't understand what this > code actually does, but it's clear that the current version is > wrong. > > Without this patch, building mv78xx0_defconfig results in: > > arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: initialization from > incompatible pointer type [enabled by default] > 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 > Cc: Andrew Lunn > Cc: Michael Walle > Cc: Nicolas Pitre > --- > arch/arm/mach-mv78xx0/addr-map.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-mv78xx0/addr-map.c > b/arch/arm/mach-mv78xx0/addr-map.c > index 62b53d7..a9bc841 100644 > --- a/arch/arm/mach-mv78xx0/addr-map.c > +++ b/arch/arm/mach-mv78xx0/addr-map.c > @@ -37,7 +37,7 @@ > #define WIN0_OFF(n) (BRIDGE_VIRT_BASE + 0x + ((n) << 4)) > #define WIN8_OFF(n) (BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) << 4)) > > -static void __init __iomem *win_cfg_base(int win) > +static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg > *cfg, int win) > { > /* >* Find the control register base address for this window. > -- > 1.7.10 > Acked-by: Andrew Lunn Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 03/10] ARM: mv78xx0: fix win_cfg_base prototype
On Wed, Aug 08, 2012 at 11:27:51PM +0200, Arnd Bergmann wrote: Patch b6d1c33a31 ARM: Orion: Consolidate the address map setup tried to merge the address map for the four orion platforms, but apparently got it wrong for mv78xx0. Admittedly I don't understand what this code actually does, but it's clear that the current version is wrong. Without this patch, building mv78xx0_defconfig results in: arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: initialization from incompatible pointer type [enabled by default] 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 a...@arndb.de Cc: Andrew Lunn and...@lunn.ch Cc: Michael Walle mich...@walle.cc Cc: Nicolas Pitre n...@linaro.org --- arch/arm/mach-mv78xx0/addr-map.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mv78xx0/addr-map.c b/arch/arm/mach-mv78xx0/addr-map.c index 62b53d7..a9bc841 100644 --- a/arch/arm/mach-mv78xx0/addr-map.c +++ b/arch/arm/mach-mv78xx0/addr-map.c @@ -37,7 +37,7 @@ #define WIN0_OFF(n) (BRIDGE_VIRT_BASE + 0x + ((n) 4)) #define WIN8_OFF(n) (BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) 4)) -static void __init __iomem *win_cfg_base(int win) +static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg *cfg, int win) { /* * Find the control register base address for this window. -- 1.7.10 Acked-by: Andrew Lunn and...@lunn.ch Andrew -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 03/10] ARM: mv78xx0: fix win_cfg_base prototype
Patch b6d1c33a31 "ARM: Orion: Consolidate the address map setup" tried to merge the address map for the four orion platforms, but apparently got it wrong for mv78xx0. Admittedly I don't understand what this code actually does, but it's clear that the current version is wrong. Without this patch, building mv78xx0_defconfig results in: arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: initialization from incompatible pointer type [enabled by default] 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 Cc: Andrew Lunn Cc: Michael Walle Cc: Nicolas Pitre --- arch/arm/mach-mv78xx0/addr-map.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mv78xx0/addr-map.c b/arch/arm/mach-mv78xx0/addr-map.c index 62b53d7..a9bc841 100644 --- a/arch/arm/mach-mv78xx0/addr-map.c +++ b/arch/arm/mach-mv78xx0/addr-map.c @@ -37,7 +37,7 @@ #define WIN0_OFF(n)(BRIDGE_VIRT_BASE + 0x + ((n) << 4)) #define WIN8_OFF(n)(BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) << 4)) -static void __init __iomem *win_cfg_base(int win) +static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg *cfg, int win) { /* * Find the control register base address for this window. -- 1.7.10 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH 03/10] ARM: mv78xx0: fix win_cfg_base prototype
Patch b6d1c33a31 ARM: Orion: Consolidate the address map setup tried to merge the address map for the four orion platforms, but apparently got it wrong for mv78xx0. Admittedly I don't understand what this code actually does, but it's clear that the current version is wrong. Without this patch, building mv78xx0_defconfig results in: arch/arm/mach-mv78xx0/addr-map.c:59:2: warning: initialization from incompatible pointer type [enabled by default] 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 a...@arndb.de Cc: Andrew Lunn and...@lunn.ch Cc: Michael Walle mich...@walle.cc Cc: Nicolas Pitre n...@linaro.org --- arch/arm/mach-mv78xx0/addr-map.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mv78xx0/addr-map.c b/arch/arm/mach-mv78xx0/addr-map.c index 62b53d7..a9bc841 100644 --- a/arch/arm/mach-mv78xx0/addr-map.c +++ b/arch/arm/mach-mv78xx0/addr-map.c @@ -37,7 +37,7 @@ #define WIN0_OFF(n)(BRIDGE_VIRT_BASE + 0x + ((n) 4)) #define WIN8_OFF(n)(BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) 4)) -static void __init __iomem *win_cfg_base(int win) +static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg *cfg, int win) { /* * Find the control register base address for this window. -- 1.7.10 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/