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 18/39] ASoC: da7219: skip of_device_id table when !CONFIG_OF Date: Wed, 25 Nov 2020 17:44:31 +0100 Message-ID: <20201125164452.89239-19-krzk@kernel.org> (raw) In-Reply-To: <20201125164452.89239-1-krzk@kernel.org> The driver can match by multiple methods. Its of_device_id table is referenced via of_match_ptr() so it will be unused for !CONFIG_OF builds: sound/soc/codecs/da7219.c:1705:34: warning: ‘da7219_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> --- sound/soc/codecs/da7219.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 0b3b7909efc9..e9b45daec0ca 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -1702,11 +1702,13 @@ static struct snd_soc_dai_driver da7219_dai = { * DT/ACPI */ +#ifdef CONFIG_OF static const struct of_device_id da7219_of_match[] = { { .compatible = "dlg,da7219", }, { } }; MODULE_DEVICE_TABLE(of, da7219_of_match); +#endif #ifdef CONFIG_ACPI static const struct acpi_device_id da7219_acpi_match[] = { -- 2.25.1
next prev 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 ` [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 ` Krzysztof Kozlowski [this message] 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-19-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