diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2016-11-12 11:54:45 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-01-10 23:13:29 +0100 |
commit | 25b9f899c1b33679e9c280b26d4a2a9a516ce5cc (patch) | |
tree | 617f7acd67f008da00e4b42b49b66c0efe7f30de | |
parent | 257fabb206a34cc070a4d6b14c0c732808ad836c (diff) |
ARM: imx: remove 'unused' warning
Depending on configuration the imx_gpcv2_add_m4_wake_up_irq() stub
might not be used anywhere. (e.g. when configuring for i.MX6Q only).
Set unused attribute to the function so that this does not trigger
a compile time warning.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r-- | arch/arm/mach-imx/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h index 9638944b2d84..c26801af32ae 100644 --- a/arch/arm/mach-imx/common.h +++ b/arch/arm/mach-imx/common.h @@ -147,6 +147,8 @@ void imx_gpcv2_add_m4_wake_up_irq(u32 hwirq, bool enable); #else static inline int imx_gpcv2_mf_power_on(unsigned int irq, unsigned int on) { return 0; } static inline void imx_gpcv2_set_core1_pdn_pup_by_software(bool pdn) {} +static void imx_gpcv2_add_m4_wake_up_irq(u32 hwirq, bool enable) + __attribute__ ((unused)); static void imx_gpcv2_add_m4_wake_up_irq(u32 hwirq, bool enable) {} #endif void __init imx_gpcv2_check_dt(void); |