arm: Fix build warning
PATCH 1/1 arm: Fix build warning
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 <[email protected]>
Signed-off-by Guenter Roeck <[email protected]>
--- arch/arm/kernel/topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/topology.c +1 -1
@@ -275,7 +275,7 @@ void store_cpu_topology(unsigned int cpuid) cpu_topology[cpuid].socket_id, mpidr); } -static inline const int cpu_corepower_flags (void ) +static inline int cpu_corepower_flags (void ) {return SD_SHARE_PKG_RESOURCES |SD_SHARE_POWERDOMAIN ; }
Signature · 1 line
1.9.1
Quoted 10 lines · Guenter Roeck
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 typeThis 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 <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
Acked-by David Rientjes <[email protected]>