From: Krzysztof Kozlowski <krzk@kernel.org>
To: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Support Opensource <support.opensource@diasemi.com>,
Oder Chiou <oder_chiou@realtek.com>,
Kevin Cernekee <cernekee@chromium.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
Neil Armstrong <narmstrong@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Patrick Lai <plai@codeaurora.org>,
Banajit Goswami <bgoswami@codeaurora.org>,
Heiko Stuebner <heiko@sntech.de>,
Krzysztof Kozlowski <krzk@kernel.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org,
linux-rockchip@lists.infradead.org
Subject: [PATCH v2 09/39] ASoC: qcom: mark OF related data as maybe unused
Date: Wed, 25 Nov 2020 17:44:22 +0100 [thread overview]
Message-ID: <20201125164452.89239-10-krzk@kernel.org> (raw)
In-Reply-To: <20201125164452.89239-1-krzk@kernel.org>
The driver can be compile tested with !CONFIG_OF making certain data
unused:
sound/soc/qcom/lpass-apq8016.c:294:34: warning: ‘apq8016_lpass_cpu_device_id’ defined but not used [-Wunused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
sound/soc/qcom/apq8016_sbc.c | 2 +-
sound/soc/qcom/lpass-apq8016.c | 2 +-
sound/soc/qcom/lpass-ipq806x.c | 2 +-
sound/soc/qcom/lpass-sc7180.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c
index 575e2aefefe3..270986b2f102 100644
--- a/sound/soc/qcom/apq8016_sbc.c
+++ b/sound/soc/qcom/apq8016_sbc.c
@@ -167,7 +167,7 @@ static int apq8016_sbc_platform_probe(struct platform_device *pdev)
return devm_snd_soc_register_card(&pdev->dev, card);
}
-static const struct of_device_id apq8016_sbc_device_id[] = {
+static const struct of_device_id apq8016_sbc_device_id[] __maybe_unused = {
{ .compatible = "qcom,apq8016-sbc-sndcard" },
{},
};
diff --git a/sound/soc/qcom/lpass-apq8016.c b/sound/soc/qcom/lpass-apq8016.c
index 0aedb3a0a798..8507ef8f6679 100644
--- a/sound/soc/qcom/lpass-apq8016.c
+++ b/sound/soc/qcom/lpass-apq8016.c
@@ -291,7 +291,7 @@ static struct lpass_variant apq8016_data = {
.free_dma_channel = apq8016_lpass_free_dma_channel,
};
-static const struct of_device_id apq8016_lpass_cpu_device_id[] = {
+static const struct of_device_id apq8016_lpass_cpu_device_id[] __maybe_unused = {
{ .compatible = "qcom,lpass-cpu-apq8016", .data = &apq8016_data },
{}
};
diff --git a/sound/soc/qcom/lpass-ipq806x.c b/sound/soc/qcom/lpass-ipq806x.c
index 832a9161484e..92f98b4df47f 100644
--- a/sound/soc/qcom/lpass-ipq806x.c
+++ b/sound/soc/qcom/lpass-ipq806x.c
@@ -161,7 +161,7 @@ static struct lpass_variant ipq806x_data = {
.free_dma_channel = ipq806x_lpass_free_dma_channel,
};
-static const struct of_device_id ipq806x_lpass_cpu_device_id[] = {
+static const struct of_device_id ipq806x_lpass_cpu_device_id[] __maybe_unused = {
{ .compatible = "qcom,lpass-cpu", .data = &ipq806x_data },
{}
};
diff --git a/sound/soc/qcom/lpass-sc7180.c b/sound/soc/qcom/lpass-sc7180.c
index bc998d501600..86df8a7c6635 100644
--- a/sound/soc/qcom/lpass-sc7180.c
+++ b/sound/soc/qcom/lpass-sc7180.c
@@ -284,7 +284,7 @@ static struct lpass_variant sc7180_data = {
.free_dma_channel = sc7180_lpass_free_dma_channel,
};
-static const struct of_device_id sc7180_lpass_cpu_device_id[] = {
+static const struct of_device_id sc7180_lpass_cpu_device_id[] __maybe_unused = {
{.compatible = "qcom,sc7180-lpass-cpu", .data = &sc7180_data},
{}
};
--
2.25.1
next prev parent reply other threads:[~2020-11-25 16:45 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 16:44 [PATCH v2 00/39] ASoC: fix !OF compile test warnings Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 01/39] ASoC: ak5558: mark OF related data as maybe unused Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 02/39] ASoC: bd28623: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 03/39] ASoC: gtm601: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 04/39] ASoC: inno_rk3036: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 05/39] ASoC: rk3328: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 06/39] ASoC: tas571x: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 07/39] ASoC: kirkwood: armada-370-db: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 08/39] ASoC: meson: t9015: " Krzysztof Kozlowski
2020-11-25 16:44 ` Krzysztof Kozlowski [this message]
2020-11-25 16:44 ` [PATCH v2 10/39] ASoC: samsung: smdk_wm8994: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 11/39] ASoC: rockchip: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 12/39] ASoC: ti: davinci: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 13/39] ASoC: uniphier: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 14/39] ASoC: ak4118: skip of_device_id table when !CONFIG_OF Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 15/39] ASoC: alc5623: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 16/39] ASoC: alc5632: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 17/39] ASoC: da7218: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 18/39] ASoC: da7219: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 19/39] ASoC: da9055: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 20/39] ASoC: es8316: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 21/39] ASoC: max98090: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 22/39] ASoC: max98095: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 23/39] ASoC: max98371: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 24/39] ASoC: max9867: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 25/39] ASoC: max98925: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 26/39] ASoC: max98926: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 27/39] ASoC: pcm1789: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 28/39] ASoC: pcm179x: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 29/39] ASoC: rt5660: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 30/39] ASoC: tas2562: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 31/39] ASoC: tlv320: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 32/39] ASoC: ts3a227e: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 33/39] ASoC: es7134: mark OF related data as maybe unused Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 34/39] ASoC: es7241: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 35/39] ASoC: samsung: i2s: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 36/39] ASoC: max98371: drop driver pm=NULL assignment Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 37/39] ASoC: max98925: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 38/39] ASoC: max98926: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 39/39] ASoC: samsung: smdk_wm8994: remove redundant of_match_ptr() Krzysztof Kozlowski
2020-11-26 20:05 ` [PATCH v2 00/39] ASoC: fix !OF compile test warnings 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=20201125164452.89239-10-krzk@kernel.org \
--to=krzk@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=cernekee@chromium.org \
--cc=heiko@sntech.de \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=lgirdwood@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=narmstrong@baylibre.com \
--cc=oder_chiou@realtek.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@ti.com \
--cc=plai@codeaurora.org \
--cc=s.nawrocki@samsung.com \
--cc=support.opensource@diasemi.com \
--cc=tiwai@suse.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).