Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: imx6: fix static declaration in include/soc/imx/cpuidle.h

If both CONFIG_CPU_IDLE or CONFIG_SOC_IMX6Q are not set
then the imx6q_cpuidle_fec_irqs_used() and other functions
should be marked static inline to avoid the following
warnings whilst building drivers/net/ethernet/freescale:

include/soc/imx/cpuidle.h:21:6: warning: symbol 'imx6q_cpuidle_fec_irqs_used' was not declared. Should it be static?
include/soc/imx/cpuidle.h:22:6: warning: symbol 'imx6q_cpuidle_fec_irqs_unused' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Ben Dooks and committed by
Shawn Guo
4dbc39e9 2cb9caa4

+2 -2
+2 -2
include/soc/imx/cpuidle.h
··· 18 18 void imx6q_cpuidle_fec_irqs_used(void); 19 19 void imx6q_cpuidle_fec_irqs_unused(void); 20 20 #else 21 - void imx6q_cpuidle_fec_irqs_used(void) { } 22 - void imx6q_cpuidle_fec_irqs_unused(void) { } 21 + static inline void imx6q_cpuidle_fec_irqs_used(void) { } 22 + static inline void imx6q_cpuidle_fec_irqs_unused(void) { } 23 23 #endif 24 24 25 25 #endif /* __SOC_IMX_CPUIDLE_H__ */