Commit f357563f authored by Jérémy Lefaure's avatar Jérémy Lefaure Committed by Thomas Gleixner
Browse files

irqchip/st: Mark st_irq_syscfg_resume() __maybe_unused

When CONFIG_PM_SLEEP is disabled, the compiler raises a warning on

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: default avatarJérémy Lefaure <>
Cc: Marc Zyngier <>
Cc: Jason Cooper <>

Signed-off-by: default avatarThomas Gleixner <>
parent b0b3a37b
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment