From: Ben Dooks Date: Fri, 17 Jun 2016 14:51:41 +0000 (+0100) Subject: ARM: imx6: fix static declaration in include/soc/imx/cpuidle.h X-Git-Tag: v4.14-rc1~2746^2~19^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dbc39e98b57a7f67c739b04f12d9829fe659bfa;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Shawn Guo --- diff --git a/include/soc/imx/cpuidle.h b/include/soc/imx/cpuidle.h index 986a482..8e7743d 100644 --- a/include/soc/imx/cpuidle.h +++ b/include/soc/imx/cpuidle.h @@ -18,8 +18,8 @@ void imx6q_cpuidle_fec_irqs_used(void); void imx6q_cpuidle_fec_irqs_unused(void); #else -void imx6q_cpuidle_fec_irqs_used(void) { } -void imx6q_cpuidle_fec_irqs_unused(void) { } +static inline void imx6q_cpuidle_fec_irqs_used(void) { } +static inline void imx6q_cpuidle_fec_irqs_unused(void) { } #endif #endif /* __SOC_IMX_CPUIDLE_H__ */