public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
@ 2022-10-16  4:45 Ban Tao
  2022-10-19  3:56 ` Jernej Škrabec
  0 siblings, 1 reply; 2+ messages in thread
From: Ban Tao @ 2022-10-16  4:45 UTC (permalink / raw)
  To: fengzheng923, lgirdwood, broonie, perex, tiwai, wens,
	jernej.skrabec, samuel
  Cc: alsa-devel, linux-arm-kernel, linux-sunxi, linux-kernel

In configurations with CONFIG_OF=n, we get a harmless build warning:

sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
'sun50i_dmic_of_match' [-Wunused-const-variable]

Signed-off-by: Ban Tao <fengzheng923@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
---
 sound/soc/sunxi/sun50i-dmic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sunxi/sun50i-dmic.c b/sound/soc/sunxi/sun50i-dmic.c
index 86cff5a..62509cb 100644
--- a/sound/soc/sunxi/sun50i-dmic.c
+++ b/sound/soc/sunxi/sun50i-dmic.c
@@ -391,7 +391,7 @@ static const struct dev_pm_ops sun50i_dmic_pm = {
 static struct platform_driver sun50i_dmic_driver = {
 	.driver         = {
 		.name   = "sun50i-dmic",
-		.of_match_table = of_match_ptr(sun50i_dmic_of_match),
+		.of_match_table = sun50i_dmic_of_match,
 		.pm     = &sun50i_dmic_pm,
 	},
 	.probe          = sun50i_dmic_probe,
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match
  2022-10-16  4:45 [PATCH] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match Ban Tao
@ 2022-10-19  3:56 ` Jernej Škrabec
  0 siblings, 0 replies; 2+ messages in thread
From: Jernej Škrabec @ 2022-10-19  3:56 UTC (permalink / raw)
  To: fengzheng923, lgirdwood, broonie, perex, tiwai, wens, samuel,
	Ban Tao
  Cc: alsa-devel, linux-arm-kernel, linux-sunxi, linux-kernel

Dne nedelja, 16. oktober 2022 ob 06:45:24 CEST je Ban Tao napisal(a):
> In configurations with CONFIG_OF=n, we get a harmless build warning:
> 
> sound/soc/sunxi/sun50i-dmic.c:268:34: warning: unused variable
> 'sun50i_dmic_of_match' [-Wunused-const-variable]
> 
> Signed-off-by: Ban Tao <fengzheng923@gmail.com>
> Reported-by: kernel test robot <lkp@intel.com>

Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>

Best regards,
Jernej



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-19  3:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-16  4:45 [PATCH] ASoC: sun50i-dmic: avoid unused variable warning for sun50i_dmic_of_match Ban Tao
2022-10-19  3:56 ` Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox