All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: atmel-flexcom: fix compilation warning
@ 2021-12-07 11:15 ` Claudiu Beznea
  0 siblings, 0 replies; 6+ messages in thread
From: Claudiu Beznea @ 2021-12-07 11:15 UTC (permalink / raw)
  To: lee.jones, nicolas.ferre, alexandre.belloni, ludovic.desroches
  Cc: linux-arm-kernel, linux-kernel, Claudiu Beznea, kernel test robot

Fix "unused variable 'atmel_flexcom_pm_ops' [-Wunused-const-variable]"
compilation warning by using __maybe_unused on PM ops.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 drivers/mfd/atmel-flexcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/atmel-flexcom.c b/drivers/mfd/atmel-flexcom.c
index 559eb4d352b6..33caa4fba6af 100644
--- a/drivers/mfd/atmel-flexcom.c
+++ b/drivers/mfd/atmel-flexcom.c
@@ -105,7 +105,7 @@ static int __maybe_unused atmel_flexcom_resume_noirq(struct device *dev)
 	return 0;
 }
 
-static const struct dev_pm_ops atmel_flexcom_pm_ops = {
+static const struct dev_pm_ops __maybe_unused atmel_flexcom_pm_ops = {
 	.resume_noirq = atmel_flexcom_resume_noirq,
 };
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-28  8:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 11:15 [PATCH] mfd: atmel-flexcom: fix compilation warning Claudiu Beznea
2021-12-07 11:15 ` Claudiu Beznea
2021-12-07 13:40 ` Nicolas Ferre
2021-12-07 13:40   ` Nicolas Ferre
2022-02-28  8:14 ` Lee Jones
2022-02-28  8:14   ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.