Alsa-Devel Archive on lore.kernel.org
 help / color / Atom feed
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 13/39] ASoC: uniphier: mark OF related data as maybe unused
Date: Wed, 25 Nov 2020 17:44:26 +0100
Message-ID: <20201125164452.89239-14-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/uniphier/aio-ld11.c:375:34: warning: ‘uniphier_aio_of_match’ defined but not used [-Wunused-const-variable=]
  sound/soc/uniphier/evea.c:554:34: warning: ‘evea_of_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 sound/soc/uniphier/aio-ld11.c | 2 +-
 sound/soc/uniphier/aio-pxs2.c | 2 +-
 sound/soc/uniphier/evea.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/uniphier/aio-ld11.c b/sound/soc/uniphier/aio-ld11.c
index 8b44f8dc4970..7b3cf5d751f6 100644
--- a/sound/soc/uniphier/aio-ld11.c
+++ b/sound/soc/uniphier/aio-ld11.c
@@ -372,7 +372,7 @@ static const struct uniphier_aio_chip_spec uniphier_aio_ld20_spec = {
 	.addr_ext  = 1,
 };
 
-static const struct of_device_id uniphier_aio_of_match[] = {
+static const struct of_device_id uniphier_aio_of_match[] __maybe_unused = {
 	{
 		.compatible = "socionext,uniphier-ld11-aio",
 		.data = &uniphier_aio_ld11_spec,
diff --git a/sound/soc/uniphier/aio-pxs2.c b/sound/soc/uniphier/aio-pxs2.c
index a1d05fe9d3c2..899904f7ffd6 100644
--- a/sound/soc/uniphier/aio-pxs2.c
+++ b/sound/soc/uniphier/aio-pxs2.c
@@ -282,7 +282,7 @@ static const struct uniphier_aio_chip_spec uniphier_aio_pxs2_spec = {
 	.addr_ext  = 0,
 };
 
-static const struct of_device_id uniphier_aio_of_match[] = {
+static const struct of_device_id uniphier_aio_of_match[] __maybe_unused = {
 	{
 		.compatible = "socionext,uniphier-pxs2-aio",
 		.data = &uniphier_aio_pxs2_spec,
diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uniphier/evea.c
index d27e9ca07856..96343d19a1e0 100644
--- a/sound/soc/uniphier/evea.c
+++ b/sound/soc/uniphier/evea.c
@@ -551,7 +551,7 @@ static int evea_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static const struct of_device_id evea_of_match[] = {
+static const struct of_device_id evea_of_match[] __maybe_unused = {
 	{ .compatible = "socionext,uniphier-evea", },
 	{}
 };
-- 
2.25.1


  parent reply index

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 ` [PATCH v2 09/39] ASoC: qcom: " Krzysztof Kozlowski
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 ` Krzysztof Kozlowski [this message]
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-14-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

Alsa-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/alsa-devel/0 alsa-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 alsa-devel alsa-devel/ https://lore.kernel.org/alsa-devel \
		alsa-devel@alsa-project.org
	public-inbox-index alsa-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.alsa-project.alsa-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git