[PATCH] arm: Fix build warning

David Rientjes rientjes at google.com
Mon Jun 16 18:25:45 PDT 2014


On Fri, 13 Jun 2014, Guenter Roeck wrote:

> If compiled with W=1, the following warning is seen in arm builds.
> 
> arch/arm/kernel/topology.c:278:25: warning:
> 	type qualifiers ignored on function return type
> 
> This is caused by a function returning 'const int', which doesn't
> make sense to gcc. Drop 'const' to fix the problem.
> 
> Reported-by: Vincent Guittot <vincent.guittot at linaro.org>
> Signed-off-by: Guenter Roeck <linux at roeck-us.net>

Acked-by: David Rientjes <rientjes at google.com>



More information about the linux-arm-kernel mailing list