All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: at91: mark PM ops as __maybe unused
@ 2021-08-11 13:10 Wolfram Sang
  2021-08-11 13:22 ` Codrin.Ciubotariu
  2021-08-11 13:54 ` Wolfram Sang
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfram Sang @ 2021-08-11 13:10 UTC (permalink / raw)
  To: linux-i2c; +Cc: Codrin Ciubotariu, Wolfram Sang, kernel test robot

The driver uses pm_ptr(), so the PM ops could be unused.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: dab4b0e8c9a5 ("i2c: at91: remove #define CONFIG_PM")
Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
 drivers/i2c/busses/i2c-at91-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-at91-core.c b/drivers/i2c/busses/i2c-at91-core.c
index 9f3c3e8e8011..2df9df585131 100644
--- a/drivers/i2c/busses/i2c-at91-core.c
+++ b/drivers/i2c/busses/i2c-at91-core.c
@@ -333,7 +333,7 @@ static int __maybe_unused at91_twi_resume_noirq(struct device *dev)
 	return 0;
 }
 
-static const struct dev_pm_ops at91_twi_pm = {
+static const struct dev_pm_ops __maybe_unused at91_twi_pm = {
 	.suspend_noirq	= at91_twi_suspend_noirq,
 	.resume_noirq	= at91_twi_resume_noirq,
 	.runtime_suspend	= at91_twi_runtime_suspend,
-- 
2.30.2


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

* Re: [PATCH] i2c: at91: mark PM ops as __maybe unused
  2021-08-11 13:10 [PATCH] i2c: at91: mark PM ops as __maybe unused Wolfram Sang
@ 2021-08-11 13:22 ` Codrin.Ciubotariu
  2021-08-11 13:54 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Codrin.Ciubotariu @ 2021-08-11 13:22 UTC (permalink / raw)
  To: wsa, linux-i2c; +Cc: lkp

On 11.08.2021 16:10, Wolfram Sang wrote:
> The driver uses pm_ptr(), so the PM ops could be unused.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: dab4b0e8c9a5 ("i2c: at91: remove #define CONFIG_PM")
> Signed-off-by: Wolfram Sang <wsa@kernel.org>

Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>

Thanks!

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

* Re: [PATCH] i2c: at91: mark PM ops as __maybe unused
  2021-08-11 13:10 [PATCH] i2c: at91: mark PM ops as __maybe unused Wolfram Sang
  2021-08-11 13:22 ` Codrin.Ciubotariu
@ 2021-08-11 13:54 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2021-08-11 13:54 UTC (permalink / raw)
  To: linux-i2c; +Cc: Codrin Ciubotariu, kernel test robot

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

On Wed, Aug 11, 2021 at 03:10:02PM +0200, Wolfram Sang wrote:
> The driver uses pm_ptr(), so the PM ops could be unused.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: dab4b0e8c9a5 ("i2c: at91: remove #define CONFIG_PM")
> Signed-off-by: Wolfram Sang <wsa@kernel.org>

Applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2021-08-11 13:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-11 13:10 [PATCH] i2c: at91: mark PM ops as __maybe unused Wolfram Sang
2021-08-11 13:22 ` Codrin.Ciubotariu
2021-08-11 13:54 ` Wolfram Sang

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.