diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2016-06-17 10:51:41 -0400 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2016-06-21 02:35:29 -0400 |
commit | 4dbc39e98b57a7f67c739b04f12d9829fe659bfa (patch) | |
tree | 96fac69a66b2c84bca78050cf9f95f77147abf2e | |
parent | 2cb9caa43974050c48136c51ece9edc1b0107152 (diff) |
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>
-rw-r--r-- | include/soc/imx/cpuidle.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/soc/imx/cpuidle.h b/include/soc/imx/cpuidle.h index 986a4823bce1..8e7743d3b34d 100644 --- a/include/soc/imx/cpuidle.h +++ b/include/soc/imx/cpuidle.h | |||
@@ -18,8 +18,8 @@ | |||
18 | void imx6q_cpuidle_fec_irqs_used(void); | 18 | void imx6q_cpuidle_fec_irqs_used(void); |
19 | void imx6q_cpuidle_fec_irqs_unused(void); | 19 | void imx6q_cpuidle_fec_irqs_unused(void); |
20 | #else | 20 | #else |
21 | void imx6q_cpuidle_fec_irqs_used(void) { } | 21 | static inline void imx6q_cpuidle_fec_irqs_used(void) { } |
22 | void imx6q_cpuidle_fec_irqs_unused(void) { } | 22 | static inline void imx6q_cpuidle_fec_irqs_unused(void) { } |
23 | #endif | 23 | #endif |
24 | 24 | ||
25 | #endif /* __SOC_IMX_CPUIDLE_H__ */ | 25 | #endif /* __SOC_IMX_CPUIDLE_H__ */ |