ARM: imx6: fix static declaration in include/soc/imx/cpuidle.h
authorBen Dooks <ben.dooks@codethink.co.uk>
Fri, 17 Jun 2016 14:51:41 +0000 (15:51 +0100)
committerShawn Guo <shawnguo@kernel.org>
Tue, 21 Jun 2016 06:35:29 +0000 (14:35 +0800)
commit4dbc39e98b57a7f67c739b04f12d9829fe659bfa
tree96fac69a66b2c84bca78050cf9f95f77147abf2e
parent2cb9caa43974050c48136c51ece9edc1b0107152
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>
include/soc/imx/cpuidle.h