* [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void
@ 2014-01-17 18:52 Ezequiel Garcia
2014-01-17 22:18 ` Andrew Lunn
2014-01-18 23:54 ` Jason Cooper
0 siblings, 2 replies; 4+ messages in thread
From: Ezequiel Garcia @ 2014-01-17 18:52 UTC (permalink / raw)
To: linux-arm-kernel
This function was originally meant to return void as declared in the
common.h header. Fix it and include the header to catch these errors
in the future.
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
arch/arm/mach-kirkwood/pm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-kirkwood/pm.c b/arch/arm/mach-kirkwood/pm.c
index 8783a71..c11f7f5 100644
--- a/arch/arm/mach-kirkwood/pm.c
+++ b/arch/arm/mach-kirkwood/pm.c
@@ -18,6 +18,7 @@
#include <linux/suspend.h>
#include <linux/io.h>
#include <mach/bridge-regs.h>
+#include "common.h"
static void __iomem *ddr_operation_base;
@@ -65,7 +66,7 @@ static const struct platform_suspend_ops kirkwood_suspend_ops = {
.valid = kirkwood_pm_valid_standby,
};
-int __init kirkwood_pm_init(void)
+void __init kirkwood_pm_init(void)
{
ddr_operation_base = ioremap(DDR_OPERATION_BASE, 4);
suspend_set_ops(&kirkwood_suspend_ops);
--
1.8.1.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void
2014-01-17 18:52 [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void Ezequiel Garcia
@ 2014-01-17 22:18 ` Andrew Lunn
2014-01-18 23:54 ` Jason Cooper
1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2014-01-17 22:18 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jan 17, 2014 at 03:52:11PM -0300, Ezequiel Garcia wrote:
> This function was originally meant to return void as declared in the
> common.h header. Fix it and include the header to catch these errors
> in the future.
>
> Reported-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Andrew
> ---
> arch/arm/mach-kirkwood/pm.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-kirkwood/pm.c b/arch/arm/mach-kirkwood/pm.c
> index 8783a71..c11f7f5 100644
> --- a/arch/arm/mach-kirkwood/pm.c
> +++ b/arch/arm/mach-kirkwood/pm.c
> @@ -18,6 +18,7 @@
> #include <linux/suspend.h>
> #include <linux/io.h>
> #include <mach/bridge-regs.h>
> +#include "common.h"
>
> static void __iomem *ddr_operation_base;
>
> @@ -65,7 +66,7 @@ static const struct platform_suspend_ops kirkwood_suspend_ops = {
> .valid = kirkwood_pm_valid_standby,
> };
>
> -int __init kirkwood_pm_init(void)
> +void __init kirkwood_pm_init(void)
> {
> ddr_operation_base = ioremap(DDR_OPERATION_BASE, 4);
> suspend_set_ops(&kirkwood_suspend_ops);
> --
> 1.8.1.5
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void
2014-01-17 18:52 [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void Ezequiel Garcia
2014-01-17 22:18 ` Andrew Lunn
@ 2014-01-18 23:54 ` Jason Cooper
2014-01-19 0:29 ` Ezequiel Garcia
1 sibling, 1 reply; 4+ messages in thread
From: Jason Cooper @ 2014-01-18 23:54 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Jan 17, 2014 at 03:52:11PM -0300, Ezequiel Garcia wrote:
> This function was originally meant to return void as declared in the
> common.h header. Fix it and include the header to catch these errors
> in the future.
>
> Reported-by: Andrew Lunn <andrew@lunn.ch>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> ---
> arch/arm/mach-kirkwood/pm.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
merf. I get the following warning when building kirkwood_defconfig:
arch/arm/mach-kirkwood/pm.c: In function 'kirkwood_pm_init':
arch/arm/mach-kirkwood/pm.c:73:2: warning: 'return' with a value, in function returning void [enabled by default]
I've amended the patch as below and pushed it to mvebu/fixes
thx,
Jason.
--------->8--------------------
commit 77dfdeb41125b6468790fa4c620da262c910cbc9
Author: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Date: Fri Jan 17 15:52:11 2014 -0300
ARM: kirkwood: kirkwood_pm_init() should return void
This function was originally meant to return void as declared in the
common.h header. Fix it and include the header to catch these errors
in the future.
[jac] removed 'return 0;' to clear this warning:
arch/arm/mach-kirkwood/pm.c: In function 'kirkwood_pm_init':
arch/arm/mach-kirkwood/pm.c:73:2: warning: 'return' with a value, in function returning void [enabled by default]
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
diff --git a/arch/arm/mach-kirkwood/pm.c b/arch/arm/mach-kirkwood/pm.c
index 8783a7184e73..c6ab8d9303a5 100644
--- a/arch/arm/mach-kirkwood/pm.c
+++ b/arch/arm/mach-kirkwood/pm.c
@@ -18,6 +18,7 @@
#include <linux/suspend.h>
#include <linux/io.h>
#include <mach/bridge-regs.h>
+#include "common.h"
static void __iomem *ddr_operation_base;
@@ -65,9 +66,8 @@ static const struct platform_suspend_ops kirkwood_suspend_ops = {
.valid = kirkwood_pm_valid_standby,
};
-int __init kirkwood_pm_init(void)
+void __init kirkwood_pm_init(void)
{
ddr_operation_base = ioremap(DDR_OPERATION_BASE, 4);
suspend_set_ops(&kirkwood_suspend_ops);
- return 0;
}
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void
2014-01-18 23:54 ` Jason Cooper
@ 2014-01-19 0:29 ` Ezequiel Garcia
0 siblings, 0 replies; 4+ messages in thread
From: Ezequiel Garcia @ 2014-01-19 0:29 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Jan 18, 2014 at 06:54:11PM -0500, Jason Cooper wrote:
> On Fri, Jan 17, 2014 at 03:52:11PM -0300, Ezequiel Garcia wrote:
> > This function was originally meant to return void as declared in the
> > common.h header. Fix it and include the header to catch these errors
> > in the future.
> >
> > Reported-by: Andrew Lunn <andrew@lunn.ch>
> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > ---
> > arch/arm/mach-kirkwood/pm.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> merf. I get the following warning when building kirkwood_defconfig:
>
> arch/arm/mach-kirkwood/pm.c: In function 'kirkwood_pm_init':
> arch/arm/mach-kirkwood/pm.c:73:2: warning: 'return' with a value, in function returning void [enabled by default]
>
Doh...
> I've amended the patch as below and pushed it to mvebu/fixes
>
Thanks!
--
Ezequiel Garc?a, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-19 0:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-17 18:52 [PATCH] ARM: kirkwood: kirkwood_pm_init() should return void Ezequiel Garcia
2014-01-17 22:18 ` Andrew Lunn
2014-01-18 23:54 ` Jason Cooper
2014-01-19 0:29 ` Ezequiel Garcia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).