diff options
author | Jérémy Lefaure <jeremy.lefaure@lse.epita.fr> | 2016-12-17 01:29:27 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-12-19 10:55:43 +0100 |
commit | f357563f958df06cd9ea9e614cdba30578bb08b1 (patch) | |
tree | 97ec359e37058a14517042dc49b7310bb9973c2f /drivers/irqchip/irq-st.c | |
parent | Merge tag 'rtc-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/abellon... (diff) | |
download | linux-f357563f958df06cd9ea9e614cdba30578bb08b1.tar.xz linux-f357563f958df06cd9ea9e614cdba30578bb08b1.zip |
irqchip/st: Mark st_irq_syscfg_resume() __maybe_unused
When CONFIG_PM_SLEEP is disabled, the compiler raises a warning on
st_irq_syscfg_resume:
drivers/irqchip/irq-st.c:183:12: warning: 'st_irq_syscfg_resume' defined
but not used [-Wunused-function]
static int st_irq_syscfg_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~~
Annotate the function with __maybe_unused.
Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/20161217002927.31947-1-jeremy.lefaure@lse.epita.fr
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/irqchip/irq-st.c')
-rw-r--r-- | drivers/irqchip/irq-st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-st.c b/drivers/irqchip/irq-st.c index 9af48a85c16f..5e0e250db0be 100644 --- a/drivers/irqchip/irq-st.c +++ b/drivers/irqchip/irq-st.c @@ -180,7 +180,7 @@ static int st_irq_syscfg_probe(struct platform_device *pdev) return st_irq_syscfg_enable(pdev); } -static int st_irq_syscfg_resume(struct device *dev) +static int __maybe_unused st_irq_syscfg_resume(struct device *dev) { struct st_irq_syscfg *ddata = dev_get_drvdata(dev); |