linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: linux-rtc@vger.kernel.org, Akinobu Mita <akinobu.mita@gmail.com>
Cc: a.zummo@towertech.it, kernel test robot <lkp@intel.com>
Subject: Re: [PATCH] rtc: ds3232: avoid unused-const-variable warning
Date: Mon, 8 Jan 2024 01:31:02 +0100	[thread overview]
Message-ID: <170467384895.599798.12555021525367967671.b4-ty@bootlin.com> (raw)
In-Reply-To: <20231118092200.829808-1-akinobu.mita@gmail.com>


On Sat, 18 Nov 2023 18:22:00 +0900, Akinobu Mita wrote:
> Fix the following warning when CONFIG_I2C is not set but CONFIG_SPI_MASTER
> is set.
> 
> warning: 'ds3232_pm_ops' defined but not used [-Wunused-const-variable=]
> 
> 'ds3232_pm_ops' is only used by rtc-ds3232 i2c driver, so move the device
> PM callbacks inside #if IS_ENABLED(CONFIG_I2C).
> 
> [...]

Applied, thanks!

[1/1] rtc: ds3232: avoid unused-const-variable warning
      commit: 3628d999e31e2e31b51f78b0f68e91275854c179

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

      reply	other threads:[~2024-01-08  0:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-18  9:22 [PATCH] rtc: ds3232: avoid unused-const-variable warning Akinobu Mita
2024-01-08  0:31 ` Alexandre Belloni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170467384895.599798.12555021525367967671.b4-ty@bootlin.com \
    --to=alexandre.belloni@bootlin.com \
    --cc=a.zummo@towertech.it \
    --cc=akinobu.mita@gmail.com \
    --cc=linux-rtc@vger.kernel.org \
    --cc=lkp@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).