All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org
Subject: [alsa-devel] [PATCH 4/4] ASoC: rt715: Add __maybe_unused to PM callbacks
Date: Mon, 27 Jan 2020 20:28:31 +0100	[thread overview]
Message-ID: <20200127192831.14057-5-tiwai@suse.de> (raw)
In-Reply-To: <20200127192831.14057-1-tiwai@suse.de>

Fix the compile warnings by adding __maybe_unused to PM callbacks:
  sound/soc/codecs/rt715-sdw.c:566:12: warning: ‘rt715_dev_resume’ defined but not used [-Wunused-function]
  sound/soc/codecs/rt715-sdw.c:552:12: warning: ‘rt715_dev_suspend’ defined but not used [-Wunused-function]

Fixes: d1ede0641b05 ("ASoC: rt715: add RT715 codec driver")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/codecs/rt715-sdw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/rt715-sdw.c b/sound/soc/codecs/rt715-sdw.c
index 6d892c44c522..64ef56ef0318 100644
--- a/sound/soc/codecs/rt715-sdw.c
+++ b/sound/soc/codecs/rt715-sdw.c
@@ -549,7 +549,7 @@ static const struct sdw_device_id rt715_id[] = {
 };
 MODULE_DEVICE_TABLE(sdw, rt715_id);
 
-static int rt715_dev_suspend(struct device *dev)
+static int __maybe_unused rt715_dev_suspend(struct device *dev)
 {
 	struct rt715_priv *rt715 = dev_get_drvdata(dev);
 
@@ -563,7 +563,7 @@ static int rt715_dev_suspend(struct device *dev)
 
 #define RT715_PROBE_TIMEOUT 2000
 
-static int rt715_dev_resume(struct device *dev)
+static int __maybe_unused rt715_dev_resume(struct device *dev)
 {
 	struct sdw_slave *slave = dev_to_sdw_dev(dev);
 	struct rt715_priv *rt715 = dev_get_drvdata(dev);
-- 
2.16.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2020-01-27 19:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27 19:28 [alsa-devel] [PATCH 0/4] ASoC: realtek sdw: Add __maybe_unused to PM callbacks Takashi Iwai
2020-01-27 19:28 ` [alsa-devel] [PATCH 1/4] ASoC: rt1308-sdw: " Takashi Iwai
2020-01-29 17:54   ` [alsa-devel] Applied "ASoC: rt1308-sdw: Add __maybe_unused to PM callbacks" to the asoc tree Mark Brown
2020-01-27 19:28 ` [alsa-devel] [PATCH 2/4] ASoC: rt700: Add __maybe_unused to PM callbacks Takashi Iwai
2020-01-29 17:54   ` [alsa-devel] Applied "ASoC: rt700: Add __maybe_unused to PM callbacks" to the asoc tree Mark Brown
2020-01-27 19:28 ` [alsa-devel] [PATCH 3/4] ASoC: rt711: Add __maybe_unused to PM callbacks Takashi Iwai
2020-01-29 17:54   ` [alsa-devel] Applied "ASoC: rt711: Add __maybe_unused to PM callbacks" to the asoc tree Mark Brown
2020-01-27 19:28 ` Takashi Iwai [this message]
2020-01-29 17:54   ` [alsa-devel] Applied "ASoC: rt715: " Mark Brown

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=20200127192831.14057-5-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    /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 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.