linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: psci: fix warning on psci_init if ARM_PSCI is undefined
@ 2014-05-27 21:20 Christian Engelmayer
  2014-05-28  7:59 ` Christoffer Dall
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Engelmayer @ 2014-05-27 21:20 UTC (permalink / raw)
  To: linux-arm-kernel

Commit e71246a (PSCI: Add initial support for PSCIv0.2 functions) changed the
return type of function psci_init() from void to int, but left the static
inline stub used if CONFIG_ARM_PSCI is not defined otherwise untouched. This
results in minor compile warning "warning: no return statement in function
returning non-void [-Wreturn-type]". The return value is currently not
evaluated by the only caller anyway.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
---
Compile tested only. Applies against branch next in tree
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git
---
 arch/arm/include/asm/psci.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h
index b93e34a..c25ef3e 100644
--- a/arch/arm/include/asm/psci.h
+++ b/arch/arm/include/asm/psci.h
@@ -41,7 +41,7 @@ extern struct smp_operations psci_smp_ops;
 int psci_init(void);
 bool psci_smp_available(void);
 #else
-static inline int psci_init(void) { }
+static inline int psci_init(void) { return 0; }
 static inline bool psci_smp_available(void) { return false; }
 #endif
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] ARM: psci: fix warning on psci_init if ARM_PSCI is undefined
  2014-05-27 21:20 [PATCH] ARM: psci: fix warning on psci_init if ARM_PSCI is undefined Christian Engelmayer
@ 2014-05-28  7:59 ` Christoffer Dall
  2014-05-28 21:46   ` Christian Engelmayer
  0 siblings, 1 reply; 3+ messages in thread
From: Christoffer Dall @ 2014-05-28  7:59 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, May 27, 2014 at 11:20:47PM +0200, Christian Engelmayer wrote:
> Commit e71246a (PSCI: Add initial support for PSCIv0.2 functions) changed the
> return type of function psci_init() from void to int, but left the static
> inline stub used if CONFIG_ARM_PSCI is not defined otherwise untouched. This
> results in minor compile warning "warning: no return statement in function
> returning non-void [-Wreturn-type]". The return value is currently not
> evaluated by the only caller anyway.
> 
> Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
> ---
> Compile tested only. Applies against branch next in tree
> git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git

I sent out a fix for this yesterday as well, think Paolo was going to
apply that one:
http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/260009.html

Thanks,
-Christoffer

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: psci: fix warning on psci_init if ARM_PSCI is undefined
  2014-05-28  7:59 ` Christoffer Dall
@ 2014-05-28 21:46   ` Christian Engelmayer
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Engelmayer @ 2014-05-28 21:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, 28 May 2014 09:59:25 +0200, Christoffer Dall <christoffer.dall@linaro.org> wrote:
> On Tue, May 27, 2014 at 11:20:47PM +0200, Christian Engelmayer wrote:
> > Commit e71246a (PSCI: Add initial support for PSCIv0.2 functions) changed the
> > return type of function psci_init() from void to int, but left the static
> > inline stub used if CONFIG_ARM_PSCI is not defined otherwise untouched. This
> > results in minor compile warning "warning: no return statement in function
> > returning non-void [-Wreturn-type]". The return value is currently not
> > evaluated by the only caller anyway.
> > 
> > Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
> > ---
> > Compile tested only. Applies against branch next in tree
> > git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git
> 
> I sent out a fix for this yesterday as well, think Paolo was going to
> apply that one:
> http://lists.infradead.org/pipermail/linux-arm-kernel/2014-May/260009.html

Thanks for letting me know Christoffer! I missed that when checking for already
submitted patches for this. Both patches only differ in the commit log message,
so it's fine either way.

Regards,
Christian

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-05-28 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 21:20 [PATCH] ARM: psci: fix warning on psci_init if ARM_PSCI is undefined Christian Engelmayer
2014-05-28  7:59 ` Christoffer Dall
2014-05-28 21:46   ` Christian Engelmayer

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).